aspose file tools
The moose likes JSF and the fly likes Rich Modal Panel Header Moving with scroll Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Rich Modal Panel Header Moving with scroll" Watch "Rich Modal Panel Header Moving with scroll" New topic
Author

Rich Modal Panel Header Moving with scroll

Astria Bothello
Greenhorn

Joined: Mar 12, 2012
Posts: 11
I have a rich modal panel with style="overflow-x:auto"

When there is a horizontal scroll bar - the header (which should be fixed) also moves as you scroll to the right.

Appreciate any suggestions



[Thumbnail for modal.gif]

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14480
    
    7

Rather than making the entire modal panel scroll, break it down into zones. You can use the brute-force HTML <div> element or a JSF h:dataGrid (1x1 cell grid), whichever you prefer. Use one zone to hold the header and the other to hold the content and make only the content zone scrollable.

Variants of this approach include making a 1x2 grid with the header in the top cell and a nested div or 1x1 grid in the bottom cell. Same deal - make the content area scroll and leave the header area fixed.


Customer surveys are for companies who didn't pay proper attention to begin with.
Astria Bothello
Greenhorn

Joined: Mar 12, 2012
Posts: 11
Thanks Tim - it worked.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Rich Modal Panel Header Moving with scroll
 
Similar Threads
rich tabpanel : first rich tab not loaded with focus with first tab
Rich Faces Modal Panel Problem
how to prevent wrapping in conjunction with FlowLayout?
Nested JTables - The header of the inner JTable is not showing
ModalPanel Issue