PDA

View Full Version : [CLOSED] [2.0] Window AutoHeight problem.



FVNoel
Aug 03, 2012, 11:47 AM

Daniil
Aug 03, 2012, 12:26 PM
Hi,

Window doesn't support stretching for its content.

Additionally, the AutoHeight property has been removed on ExtJS side at all. As far as I can understand if no explicit Height and an item is out of any layout, auto height will be applied automatically.

In your case, I can suggest the following solution.
http://forums.ext.net/showthread.php?17361&p=74694&viewfull=1#post74694

FVNoel
Aug 06, 2012, 6:30 AM

Daniil
Aug 06, 2012, 9:32 AM
Agree, there should be a simpler solution. And that is it:

BodyStyle="height: auto;"

And it's the same as AutoHeight was.

But there is an issue in Ext.NET - a Window is rendered with default "height: 100;" which overrides BodyStyle.

For now I can suggest the following workaround.

<ext:Window runat="server" BodyStyle="height: auto;" XHeight="undefined" />

We are investigating a possible fix.

FVNoel
Aug 06, 2012, 10:42 AM
It works perfectly, Thanks!

Daniil
Aug 07, 2012, 2:54 PM
After updating from SVN 2.1 branch you can remove:

XHeight="undefined"

Thanks for the question. It is pushed us to discover an issue.

Daniil
Aug 10, 2012, 7:15 AM
As far as I can understand if no explicit Height and an item is out of any layout, auto height will be applied automatically

I think it's actual for GridPanel only.