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?
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?