Hi guys! I have a layout design similar to the Showcase: a tree on the left with a split and a main panel on the right. But the difference is that I do not want to show the selected panel in a TabSet. More exactly on the right of the split I have a VLayout as main panel. Each time I select something in the tree, I add the new panel as a member to the main panel, hide the previous selected panel and show the new one. Everything is fine until I resize the browser. Scrollbar appear instead of resizing the current visible panel. It seems that the size of the other members of the main panel is taken into consideration although they are not visible and that is why the scroll appears...
According to a similar thread "a canvas with its visibility set to "hidden" still contributes to the scroll-size of its parent (this is related to native browser behavior with CSS). Layouts have some special logic to ignore the size of hidden members which doesn't exist for simple parent canvases." And I am using a VLayout not a Canvas as main panel but the scroll still appears...
Adding/removing members on selection is a no go solution because it takes longer to draw and it looses all graphical details (scroll position etc.). Hence show/hide is a better approach. But how can I avoid the scroll behavior on browser resize?
According to a similar thread "a canvas with its visibility set to "hidden" still contributes to the scroll-size of its parent (this is related to native browser behavior with CSS). Layouts have some special logic to ignore the size of hidden members which doesn't exist for simple parent canvases." And I am using a VLayout not a Canvas as main panel but the scroll still appears...
Adding/removing members on selection is a no go solution because it takes longer to draw and it looses all graphical details (scroll position etc.). Hence show/hide is a better approach. But how can I avoid the scroll behavior on browser resize?
Comment