-
9 Feb 2009 1:17 AM #1
Bug for AbsolutLayout?
Bug for AbsolutLayout?
hi,
first i have to say,
that the problem is only in IE (i have version 7) and for TextFields.
i am using the AbsolutLayout for positioning my Widget absolut in the LayoutContainer. this was working fine for version 1.2.1. the "txtTitle.setFieldLabel("Test");" was never shown, but that doesn't matter. i always added a extra LabelField before the TextField.
(see my code below)
now i switched to gxt version 1.2.2 and it seems, that the value for top in the AbsoluteData has no effect. the TextField is always positioning at the given left value (that's ok) but always on top.Code:public class TestView extends LayoutContainer { @Override protected void onRender(Element parent, int index) { super.onRender(parent, index); test(); } private void test() { setLayout(new AbsoluteLayout()); TextField<String> txtTitle = new TextField<String>(); txtTitle.setFieldLabel("Test"); add(txtTitle, new AbsoluteData(300, 300)); } }
what's the difference between 1.2.1 and 1.2.2 using the AbsolutData? what wrong now?
thx for helping
greetings paco
-
9 Feb 2009 4:52 AM #2
are you sizing the layoutcontainer?
GXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
9 Feb 2009 7:59 AM #3
no - i do not set a size for the LayoutContainer. Should i? and how?
it should have the whole size in width and height.
if i put the TextField into a SimplePanel and than add the Simple to the LayoutContainer, it is working fine.
greetings
paco
-
9 Feb 2009 12:41 PM #4
you are mixing GWT and gxt panels and they do different things - ie the panel layout/behave differently
All containers in GXT must be sized, or be sized by their parentsGXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
10 Feb 2009 5:10 AM #5
i put the TextField in a SimplePanel and this Panel could
set absolute. so everything is working as bevore.
thank you for helping


Reply With Quote