Results 1 to 3 of 3

Thread: How to get a parent's height?

  1. #1

    Default How to get a parent's height?

    I got a panel whose height is calculated by a LayoutManager ,two panels in it ,one is on top ,and one is at the bottom ,i want each one got half height of the parent panel.
    how to do this?
    thx!

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    YOU do not perform any of these calculations. This is what the layout config is FOR.

    Configure that Panel with

    Code:
    layout: {
        type: 'vbox',
        align: 'stretch'
    }
    And each of the two child items with

    Code:
    flex: 1

  3. #3

    Default

    Quote Originally Posted by Animal View Post
    YOU do not perform any of these calculations. This is what the layout config is FOR.

    Configure that Panel with

    Code:
    layout: {
        type: 'vbox',
        align: 'stretch'
    }
    And each of the two child items with

    Code:
    flex: 1
    thx again !

Posting Permissions

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