eviltofu
29 Oct 2007, 5:48 AM
No matter how wide I make the BasicDialog box, the scroll bars still remain. I've tracked it down to the CheckBox element. If I remove it, the BasicDialog box does not have the scroll bars. If I do enclose the Checkbox in a Fieldset, the scroll bars go away.
included below is a screen shot of the dialog.
This does not appear of Firefox 2.008, IE 6.0.2900*, Opera 9.24 on XP and Firefox 2.008 on OS X.
Thank you for your help. Information follows.
Ext Version : 1.1.1
ext-base.js
Macintosh OS X 10.4.10 with Safari 3.0.3 (522.12.1)
Windows XP Home Edition Version 2002 Service Pack 2 with Safari 3.0.3 (522.15.5)
Tofusoft.MarketShippingDelegate.defaultDialogProperties = {
width: 320,
height:220,
modal: true,
shadow: true,
closable: false,
collapsible: false,
draggable: true,
fixedcenter: true,
resizable: false,
title: "Markets And Shipping Rates Editor"
};
Tofusoft.MarketShippingDelegate.prototype.init = function() {
this.initData();
this.createDialog();
this.createForm();
this.dialog.body.applyStyles("padding:10px");
this.form.render(this.dialog.body);
this.dialog.addButton("Cancel",this.cancel,this);
this.dialog.addButton("Change",this.change,this);
};
Tofusoft.MarketShippingDelegate.prototype.initData = function() {
this.shippingTypeList = [
['0', 'Local'],
['1', 'Overseas']
];
}
Tofusoft.MarketShippingDelegate.prototype.createDialog = function() {
var node = Ext.get(document.createElement('div'));
var body = Ext.get(document.body);
body.appendChild(node);
this.dialog = new Ext.BasicDialog(node,Tofusoft.MarketShippingDelegate.defaultDialogProperties);
};
Tofusoft.MarketShippingDelegate.prototype.createForm = function() {
this.form = new Ext.form.Form({
labelAlign: "right",
labelWidth: 100,
buttonAlign: "right"
});
this.form.add(new Ext.form.TextField({fieldLabel:'Market',name:'market',disabled:true}));
this.form.add(new Ext.form.TextField({fieldLabel:'Brand',name:'brand',disabled:true}));
this.store = new Ext.data.SimpleStore({fields:['sid', 'state'],data:this.shippingTypeList});
this.form.add(new Ext.form.Checkbox({fieldLabel:'Available',checked:false,name:'availability'}));
this.comboBox = new Ext.form.ComboBox({
store: this.store,
fieldLabel:'Shipping Type',
name:'shippingType',
mode:'local',
valueField: 'sid',
displayField:'state',
editable: false,
forceSelect:true,
triggerAction:'all'});
this.form.add(this.comboBox);
this.form.add(new Ext.form.TextField({fieldLabel:'Shipping Rates',name:'shippingRate'}));
}
included below is a screen shot of the dialog.
This does not appear of Firefox 2.008, IE 6.0.2900*, Opera 9.24 on XP and Firefox 2.008 on OS X.
Thank you for your help. Information follows.
Ext Version : 1.1.1
ext-base.js
Macintosh OS X 10.4.10 with Safari 3.0.3 (522.12.1)
Windows XP Home Edition Version 2002 Service Pack 2 with Safari 3.0.3 (522.15.5)
Tofusoft.MarketShippingDelegate.defaultDialogProperties = {
width: 320,
height:220,
modal: true,
shadow: true,
closable: false,
collapsible: false,
draggable: true,
fixedcenter: true,
resizable: false,
title: "Markets And Shipping Rates Editor"
};
Tofusoft.MarketShippingDelegate.prototype.init = function() {
this.initData();
this.createDialog();
this.createForm();
this.dialog.body.applyStyles("padding:10px");
this.form.render(this.dialog.body);
this.dialog.addButton("Cancel",this.cancel,this);
this.dialog.addButton("Change",this.change,this);
};
Tofusoft.MarketShippingDelegate.prototype.initData = function() {
this.shippingTypeList = [
['0', 'Local'],
['1', 'Overseas']
];
}
Tofusoft.MarketShippingDelegate.prototype.createDialog = function() {
var node = Ext.get(document.createElement('div'));
var body = Ext.get(document.body);
body.appendChild(node);
this.dialog = new Ext.BasicDialog(node,Tofusoft.MarketShippingDelegate.defaultDialogProperties);
};
Tofusoft.MarketShippingDelegate.prototype.createForm = function() {
this.form = new Ext.form.Form({
labelAlign: "right",
labelWidth: 100,
buttonAlign: "right"
});
this.form.add(new Ext.form.TextField({fieldLabel:'Market',name:'market',disabled:true}));
this.form.add(new Ext.form.TextField({fieldLabel:'Brand',name:'brand',disabled:true}));
this.store = new Ext.data.SimpleStore({fields:['sid', 'state'],data:this.shippingTypeList});
this.form.add(new Ext.form.Checkbox({fieldLabel:'Available',checked:false,name:'availability'}));
this.comboBox = new Ext.form.ComboBox({
store: this.store,
fieldLabel:'Shipping Type',
name:'shippingType',
mode:'local',
valueField: 'sid',
displayField:'state',
editable: false,
forceSelect:true,
triggerAction:'all'});
this.form.add(this.comboBox);
this.form.add(new Ext.form.TextField({fieldLabel:'Shipping Rates',name:'shippingRate'}));
}