PDA

View Full Version : [FIXED][3.0] Button overwrites minWidth



VinylFox
8 Apr 2009, 5:49 AM
the minWidth config appears to be getting overwritten somewhere between initComponent and doAutoWidth. I have poked around and haven't been able to track down where exactly, but by the time doAutoWidth is called minWidth is already set back to the default 75.

in 2.x
http://content.screencast.com/users/VinylFox/folders/Jing/media/aede85ec-4753-4ec2-aef8-971ee0abe991/2009-04-08_0859.png

in 3.0 rev 3611
http://content.screencast.com/users/VinylFox/folders/Jing/media/cc3ab57d-853a-4877-9585-ae55c78e2aea/2009-04-08_0854.png

These two screen shots are from FF 3.0.8, but the behavior exists in IE7, Opera 9.64, Chrome 1.0.154.53 and Safari 3.2.1/4.0 - all on Vista.

To test this, modify the hello.js example to have a minWidth set for the buttons.


buttons: [{
text:'Submit',
disabled:true,
minWidth: 10
},{
text: 'Close',
handler: function(){
win.hide();
},
minWidth: 10
}]

I came across some other problems while researching this, but ill gather more info before posting them.

aconran
8 Apr 2009, 6:41 AM
Thanks for the bug report, Shea. Fixed as of Rev 3612.

VinylFox
8 Apr 2009, 7:41 AM
Verified with rev 3612 - minWidth is now working as expected.

Thanks for the quick turnaround.