PDA

View Full Version : Dialogs Resize problem in IE



zeppelin
23 Feb 2007, 8:36 AM
I think there is a problem in IE (I'm using IE7) with resizable Basic/LayoutDialog on 0.33.

When a Dialog is created (no auto-create) as handler of a addHandler call the dialog is not resizable. I think that if it is created the first of all dialogs it breaks resizing for all of them, no matter the way you create them.


settingsLink.addHandler('click',true, function() {
+ if(!dialog[1]){
+ dialog[1] = new YAHOO.ext.BasicDialog("settings-dlg",{
+ modal: true,
+ autoTabs: false,
+ width:600,
+ height:450,
+ shadow:true,
+ minWidth:600,
+ minHeight:450,
+ autoScroll: true,
+ closable: true,
+ constraintoviewport: true,
+ draggable: true,
+ proxyDrag: false,
+ fixedcenter: false,
+ minButtonWidth: 75,
+ center: {
+ tabPosition: 'top',
+ alwaysShowTabs: true
+ }
+ });
+
+ dialog[1].addKeyListener(27, dialog[1].hide, dialog[1]);
+ dialog[1].addButton('Close', dialog[1].hide, dialog[1]);
+ }
dialog[1].show(settingsLink);
});


In FF it works well.