fit.txt
来自「javascript ext1.X源码,主要用于界面」· 文本 代码 · 共 57 行
TXT
57 行
Try layout: 'fit'. That will ensure the child component fills the available space.
var tab2 = tabs1.addTab('whatsnew', "What's New");
var mgr = tab2.setUrl('/user/activity?frame=blank', null, false);
mgr.loadScripts = true;
menuCbx = new Ext.form.ComboBox({
id: 'wsm-menuCbx',
name: 'wsm-menuCbx',
hiddenName: 'wsm-menuId',
displayField: 'wsm-menu-keyname',
valueField: 'wsm-menu-id',
store: menuStore,
mode: 'remote',
minChars: 0,
editable: false,
forceSelection: true,
emptyText: 'Menü w?hlen',
width: 200,
allTimeStoreLoad:true
})
Ext.form.ComboBox.prototype.onTriggerClick = function(){
if(this.disabled){
return;
}
if(this.isExpanded()){
this.collapse();
this.el.focus();
}else {
this.hasFocus = true;
if(this.triggerAction == 'all') {
this.doQuery(this.allQuery, true);
} else {
this.doQuery(this.getRawValue());
}
this.el.focus();
}
if(this.allTimeStoreLoad)
this.store.reload();
}
if(this.getRawValue() === '')
{
this.onTriggerClick(); // pass to original combobox trigger handler
}
else
{
alert(this.store);
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?