📄 fit.txt
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -