samedi 15 mars 2014

Get TabPanel in a VBox layout to fit contents

I have a VBox layout that contains a top panel and a TabPanel. How can I get the TabPanel to fit the contents?

If I use "flex: 1" then any content that is off the screen is truncated, as also happens if an explicit height (less than the height of the contents is chosen) - this can be seen in the fiddle preview below. If I set the TabPanel to have "layout: 'fit' " then for some reason the contents of the second panel get appended to the contents of the first tabpanel.



My basic code can be seen in the following fiddle (in the VerticalTest.js view) - reduce the height of your window till some of the content is off the screen - scrolling doesn't bring it back:







Aucun commentaire:

Enregistrer un commentaire