skip to main |
skip to sidebar
Panel Stretch Layout - Center facet not adjustable to content when it grows
- You can specify dimensionsFrom="children" for the panelStretchLayout to be as tall as the children. When using this "children" setting, the topHeight and bottomHeight attributes will still be honored (unless percent units are specified) but any height assignment (e.g. inlineStyle or styleClass) on the panelStretchLayout must be omitted or else there would be a competing assignment for how tall the component will be.
- You can also specify dimensionsFrom="parent" to make the panelStretchLayout get its dimensions from the inlineStyle and if not provided from there then from its parent component or if not provided from the parent then from the skin (stretchChildren, flex, inflexibleHeight on af:showDetailItem will be honored).
- Using dimensionsFrom="auto" will choose either "children" or "parent" depending on whether the panelStretchLayout is being stretched by its parent.