Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    45
    Vote Rating
    0
    raivis is on a distinguished road

      0  

    Default HBoxLayoutContainer displays items in a column, not in a row

    HBoxLayoutContainer displays items in a column, not in a row


    HBoxLayoutContainer displays items contained in a column, not in a row.

    Code:
            Window w = new Window();
            HBoxLayoutContainer lcHbox = new HBoxLayoutContainer();
            Text t1 = new Text("first");
            Text t2 = new Text("second");
            t1.setWidth(40);
            t2.setWidth(60);
            lcHbox.add(t1);
            lcHbox.add(t2);
            w.setWidget(lcHbox);
            w.show();
    I tried different usecases - with boxlayoutdata and without, setting Text component width and without setting the width, using Margins and not using margins, the output is the same:

    first
    second

    and not first second.

    Firebug shows, that both HBoxLayoutContainer and VBoxLayoutContainer uses the same css class.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Window is not ready for prime time, as everything else too. Try setting a size to the window for now. Window will be completly rewritten, same as ContentPanel and any other related class. I will close this for now and reopen it, once this work has finished.

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    There was also another issue. HBoxLayoutContainer through a NPE if no padding was set. This is now fixed. This one should be your problem from this case.

Thread Participants: 1

Tags for this Thread