Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Posts
    139
    Vote Rating
    4
    jvahabzadeh is on a distinguished road

      0  

    Default Yet another Window class question....

    Yet another Window class question....


    Is there a "proper" or "recommended" way to put contents in a Window?

    I've tried both by using Panel classes (HorizontalPanel, VerticalPanel), as well as using the LayoutContainer classes (HorizontalLayoutContainer, VerticalLayoutContainer).

    Both seem to work, though the font is a little different for labels inside the Panel versus LayoutContainer classes.

    Interestingly, the Window will auto-size to accommodate if I use a HorizontalPanel with multiple Labels inside it, but will only partially do so with a HorizontalLayoutContainer.

    In any case, is there a reason to use one or the other, or does it not matter when using the Window class?

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,715
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    HorizontalLayoutContainer is a GXT class and can size its children. HorizontalPanel is a GWT class which does not size its children at all.

    It depends on your requirements what you should use