PDA

View Full Version : Ext.Window bad render in IE7



samotnik
24 Jun 2010, 2:31 AM
Hello.
Could you please help me.
I make very simple window

var toolTipWw = new Ext.Window({
html: this.renderTemplate(theTemplate, isOpenSearch, domToTransform, true),
constrain: true,
width: '40%',
height: Ext.getBody().getHeight() * 0.95,
autoScroll: true,
title: languageData.detailsTitle
});
toolTipWw.show();
But result is unexpected
http://img535.imageshack.us/img535/1260/tooltipbreak.th.jpg (http://img535.imageshack.us/i/tooltipbreak.jpg/)

Why there is so bad render ? And why there is horizontal scroll bar ?

Animal
24 Jun 2010, 3:14 AM
width: '40%'?

The docs say it's a number.

he scrollbar is there if the contents are too wide. As usual.

samotnik
24 Jun 2010, 3:29 AM
thanks, width now is good :)
But scroll bar still here (( And in the FF no scroll bar.

Animal
24 Jun 2010, 4:13 AM
It's not wide enough then.

samotnik
24 Jun 2010, 4:56 AM
ok, I found out solution. It's happen, becase I havn't DOCTYPE in the html page, when I add it, it works fine, without any unnecessary horizontal scroll bar

samotnik
24 Jun 2010, 6:04 AM
mr. Animal, thank you very much for your help !!!