PDA

View Full Version : [FIXED][3.0] Css error in Messagebox example. IE7.



galdaka
16 Apr 2009, 3:25 AM
View image. The browser is IE7.

Greetings,

ds0870
16 Apr 2009, 1:06 PM
The look of a message box is broken in IE 6 as well. Please see the screen shot.

evant
27 Apr 2009, 3:56 AM
Try the following patch:



Ext.override(Ext.Panel, {
onResize : function(w, h){
if(w !== undefined || h !== undefined){
if(!this.collapsed){
if(typeof w == 'number'){
w = this.adjustBodyWidth(w - this.getFrameWidth());
if(this.tbar){
this.tbar.setWidth(w);
if(this.topToolbar){
this.topToolbar.setSize(w);
}
}
if(this.bbar){
this.bbar.setWidth(w);
if(this.bottomToolbar){
this.bottomToolbar.setSize(w);
}
}
if(this.fbar){
var f = this.fbar, fWidth = 1; strict = Ext.isStrict;
if(this.buttonAlign == 'left'){
fWidth = w - f.container.getFrameWidth('lr');
}else{
//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';
}
}
f.setWidth(fWidth);
}
this.body.setWidth(w);
}else if(w == 'auto'){
this.body.setWidth(w);
}

if(typeof h == 'number'){
h = this.adjustBodyHeight(h - this.getFrameHeight());
this.body.setHeight(h);
}else if(h == 'auto'){
this.body.setHeight(h);
}

if(this.disabled && this.el._mask){
this.el._mask.setSize(this.el.dom.clientWidth, this.el.getHeight());
}
}else{
this.queuedBodySize = {width: w, height: h};
if(!this.queuedExpand && this.allowQueuedExpand !== false){
this.queuedExpand = true;
this.on('expand', function(){
delete this.queuedExpand;
this.onResize(this.queuedBodySize.width, this.queuedBodySize.height);
this.doLayout();
}, this, {single:true});
}
}
this.fireEvent('bodyresize', this, w, h);
}
this.syncShadow();
}
});

JadedHeart
28 Apr 2009, 5:50 AM
It seems to work... I have not tested it so very much yet but I will.

thanx
/P-A

galdaka
28 Apr 2009, 10:31 AM
Works fine!! I test it with all msgbox examples.

Thanks.

ds0870
29 Apr 2009, 11:16 AM
It works fine for me as well.

When can we have the fix in SVN?

Thanks.

evant
29 Apr 2009, 5:37 PM
Already there ;)

galdaka
5 May 2009, 2:24 AM
Hi,

Not solved in Ext 3.0 rc1.1

Greetings,

evant
5 May 2009, 2:41 AM
Once again, looks like the fix wasn't included in this build.