PDA

View Full Version : can not see the element in the formpanel when the formpanel is too high.



atreeyang
20 Sep 2009, 12:00 AM
Hi expert, I create a window inside is a complicit Formpanel.

editWindow = new Ext.Window({
//el: 'bd',
//renderTo:'viewport',
title:'edit',
width: 570,
autoHeight: true,
autoScroll: true,
closable: true,
closeAction: 'hide',
resizable: false,
items: entityForm
});
editWindow.show()


But seems under IE the Window's position top is negative:

DISPLAY: block; Z-INDEX: 9002; FILTER: progid:DXImageTransform.Microsoft.alpha(opacity=50) progid:DXImageTransform.Microsoft.Blur(pixelradius=4); LEFT: 422px; WIDTH: 571px; TOP: -407px; HEIGHT: 1352px


SO I can not see all the element in the formpanel :(
Please check the attachment screen shot, the scrollbar is already scroll up to the top, and some of the form elements can not be visible.

But in Firefox, it is fine. The top is positive.

Animal
20 Sep 2009, 12:08 AM
http://www.extjs.com/deploy/dev/docs/?class=Ext.Window&member=constrain

Animal
20 Sep 2009, 12:10 AM
YOu CANNOT use autoHeight. You must give the Window a height, and layout: 'fit'. The FormPanel must be able configured autoScroll: true