Results 1 to 3 of 3

Thread: centering content inside a HorizonatalLayoutContainer child

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    31
    Answers
    2
    Vote Rating
    1
      0  

    Default centering content inside a HorizonatalLayoutContainer child

    I have a HorizontalLayoutContainer with a child layoutData that sets width="1". I want to use a CenteredLayoutContainer in the child. But CenteredLayoutContainer, set's its parent container to positionable and causes the width="1" to be ignored.
    How can I center the widgets inside a HorizontalLayoutContainer child and keep the width="1"?

  2. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    413
    Answers
    20
    Vote Rating
    21
      0  

    Default

    I'm trying to picture what you're actually trying to accomplish here. A width of 1.0 means 100% which doesn't make sense for centering.

    Is there any way you can post a screenshot of what you want to happen and what is happening?

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    31
    Answers
    2
    Vote Rating
    1
      0  

    Default

    I have 3 columns in an hbox. The center column takes as much width as it needs, I.e. -1. The left and right column take the rest, I.e. 1.

    I want to add a label in the left column that is centered within the column.

Posting Permissions

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