incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Cooper" <matt.fa...@gmail.com>
Subject Re: Defining size of layout components
Date Mon, 02 Oct 2006 15:52:59 GMT
Hi Dave,

I think you might want to use tableLayout, rowLayout, and cellFormat for
this instead of panelGroupLayout.  This set of tags will create a table
structure like you want and the cellFormat has a width attribute where I
believe you can specify a percentage width.

Regards,
Matt

On 10/2/06, David Brunette <David.Brunette@chordiant.com> wrote:
>
>
>
>      Hello everybody.
>
>
>
>      I am having trouble getting the desired size on the areas of my
> page, and I was hoping to get a few tips or tricks that would help me
> with what I am trying to do.
>
>
>
>      The trouble comes when I nest some layout components.  For example,
> I have:
>
>
>
> <tr:panelHorizontalLayout>
>
>
>
>             <tr:panelGroupLayout id="AreaOne" inlineStyle="height:
> 100%; width:  70%;">
>
>                         <!-- Some Content -->
>
>             </tr:panelGroupLayout>
>
>
>
>             <tr:panelGroupLayout id="AreaTwo">
>
>                         <!-- Some More Content -->
>
>             </tr:panelGroupLayout>
>
>
>
> </tr:panelHorizontalLayout>
>
>
>
>      Here, I would like AreaOne to take up 70% of the width for the
> panelHorizontalLayout.  But whether I use inlineStyle or define a
> styleClass for AreaOne, it seems to be ignored, and the size of AreaOne
> will simply be set to fit the content that is rendered by its children.
> What I would like is for the width to always the 70%.  If the content is
> small, then we would like it to stretch to 70%.  If the content is
> large, then we do NOT want to stretch over 70%, but show scroll bars
> instead.
>
>
>
>      I have tried many different things, even using fixed pixel height
> and width for the layout components, but nothing seems to work the way I
> would like.  From viewing the source of the rendered screen, it is
> difficult to really understand which HTML element these height and width
> styles are being applied to.  Any help would be much appreciated.
> Thanks...
>
>
>
> Dave
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message