panel width become 100% inside layout

UI Components for JSF
Post Reply
javaone9
Posts: 317
Joined: 06 Nov 2012, 20:50

13 Apr 2013, 04:34

Hello,
Before using Layout, panel width is fitting its content, but it become 100% after adding to layout unit. Digging via firebug, its width is not set. Anyone knows why? How to make panel (div) width fit its content, not 100%? Thanks.

Dave

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

13 Apr 2013, 10:20

Have a look at the differences in css... Use e.g. firebug for this (but you already know that right)

Then based on those differences, look at how you can solve the issue... If that does not work, report the details here, including what you tried etc...

javaone9
Posts: 317
Joined: 06 Nov 2012, 20:50

13 Apr 2013, 17:39

the dataTable inside panel is overflowing outside the panel when the datatable is wider than the layoutUnit. but the panel is 100% same wide as the layout unit.

Code: Select all

<p:layoutUnit>
<p:panel>
    <p:dataTable>
    ..
    </p:dataTable>
</p:panel>
<p:layoutUnit>
This looks awkward. The panel should stretch and wrap around the dataTabe.

Code: Select all

.ui-dataTable table {
width: auto;
}
.ui-panel {
width: auto;   ----> same as 100%
}
I need something like:

Code: Select all

.ui-panel {
overflow: stretchToFit
}
Thanks for any help...

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

13 Apr 2013, 18:50


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 74 guests