Results 1 to 2 of 2

Thread: Yet another Window class question....

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
    142
    Vote Rating
    4
      0  

    Default 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
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •