1. #1
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65
    Vote Rating
    0
    paco_online is on a distinguished road

      0  

    Default 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)

    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));
        }
        
    }
    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.

    what's the difference between 1.2.1 and 1.2.2 using the AbsolutData? what wrong now?

    thx for helping
    greetings paco

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    are you sizing the layoutcontainer?

  3. #3
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65
    Vote Rating
    0
    paco_online is on a distinguished road

      0  

    Default


    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

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    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 parents

  5. #5
    Ext User paco_online's Avatar
    Join Date
    Jan 2009
    Location
    Vienna
    Posts
    65
    Vote Rating
    0
    paco_online is on a distinguished road

      0  

    Default


    i put the TextField in a SimplePanel and this Panel could
    set absolute. so everything is working as bevore.

    thank you for helping

Thread Participants: 1