igaenssley
24 Jun 2012, 12:46 PM
Greeting,
I'm working on an application where I will need multiple layers as direct children of the viewport that take the viewport's height and width (just like a fit layout), but exist on different z-indexes.
I have attempted to create viewport with an absolute layout, with multiple children. Then, when the viewport is rendered, selected each of the children and set their dimensions to 100%. I also have this method called with the viewport is resized.
While this works for the direct children of the Viewport, specifying "layout:'fit'" on each of those children seems to have no effect on the layout of their own children. They take up only the amount of height that the component needs, instead of the height of their parent (which is a child of the viewport).
Card layout will not work because I do need to display multiple layers at the same time.
Is there a better method/pattern to handle this?
I'm working on an application where I will need multiple layers as direct children of the viewport that take the viewport's height and width (just like a fit layout), but exist on different z-indexes.
I have attempted to create viewport with an absolute layout, with multiple children. Then, when the viewport is rendered, selected each of the children and set their dimensions to 100%. I also have this method called with the viewport is resized.
While this works for the direct children of the Viewport, specifying "layout:'fit'" on each of those children seems to have no effect on the layout of their own children. They take up only the amount of height that the component needs, instead of the height of their parent (which is a child of the viewport).
Card layout will not work because I do need to display multiple layers at the same time.
Is there a better method/pattern to handle this?