PDA

View Full Version : [CLOSED][3.x] fbar wrong button align to right on Chrome 3.0



fr33m4n
1 Dec 2009, 10:14 AM
Hi,
this is my first post, excuse me for my english first.
I'm making a Desktop like application with ExtJs 3.0.3. I have set fbar: new Ext.Toolbar(...) in a window with default buttonAlign:right. So in Firefox 3.5 buttons align is ok, in Chrome is broken.

In this portion of code of ExtJs framework there is a comment for this situation.



//center/right alignment off in webkit
if(Ext.isIE || Ext.isWebKit){
//center alignment ok on webkit.
//right broken in both, center on IE
if(!(this.buttonAlign == 'center' && Ext.isWebKit) && (!strict || (!Ext.isIE8 && strict))){
(function(){
f.setWidth(f.getEl().child('.x-toolbar-ct').getWidth());
}).defer(1);
}else{
fWidth = 'auto';
}
}else{
fWidth = 'auto';
}


Anyway, i want only right alignment for the moment so i have put only fWidth = 'auto' in any case and seems to work fine in all browser...there is a case that i don't consider?

Animal
1 Dec 2009, 1:36 PM
All that complex code has refactored into something much more elegant in 3.1

evant
1 Dec 2009, 2:04 PM
Correct, this has all been cleaned up for 3.1, it's much nicer now!

Marking as closed.

fr33m4n
1 Dec 2009, 2:36 PM
Good, thanks for the responses...when the 3.1 will be released?

Animal
1 Dec 2009, 11:24 PM
Heh! The €64000 question!

Very soon.

fr33m4n
2 Dec 2009, 12:36 AM
Eheheh...thank you anyway Animal ;)