I have two tab pages open. One tabpage has a dataview in the center region of a panel with border layout.
I've set the panel that contains the dataview set to autoscroll and layout fit
It all works perfect when the store loads - the dataview scrolls vertically if there is overflow.
The problem is that if I close the second tab (that doesn't have a dataview) the tab that is still open and that has the dataview gets refreshed and the scrollbar disappears. The height on the containing panel as well
as the dataview expands (to a size that accommodates all images) and I can't see the image records that are at the bottom.
This is not specific to the dataview. It's an issue with the center region expanding when another tabpage is closed.
I proved this by swaping the two regions - it's the center panel that always expands when the second tab page is closed.
I little higher view is this:
TabPanel
TabPage
TabPanel
tabpage with border layout
west panel
center panel with border layout
north panel
center panel with layout 'auto' that contains a dataview
When I close an unrelated second tabpage (not the one outlined above) I noticed that the size of the top center panel expands vertically to be larger than the tabpage vertical height and and along with it the inner center panel gets expanded vertically outside of the viewable area.
So closing a tab page seems to be perfoming a layout on the new active tab page and scrapping any height config on the active tab when it does so.
TabPanel
TabPage
TabPanel <---HERE
tabpage with border layout
west panel
center panel with border layout
north panel
center panel with layout 'auto' that contains a dataview
as Animal says: if you have to set dimensions by yourself you know that you did something wrong. Either you have overnesting or parent has wrong layout (or no layout).
The best try first is to get rid of unneeded wrapper panels.
vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5 energlobe.de - german online magazine