Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove layout scroll bar in primefaces?

I am dealing with primefaces and I wanted to use p:layout instead of my own layout. But the p:layoutUnit components are scrollable by default. When I wanted to remove scroll bar I tried :

       <style type="text/css">
            .ui-layout-center {                    
                overflow:hidden !important;
            }

            .ui-layout-center .ui-layout-unit-content {
                overflow:hidden !important;
            }     
        </style>

and it removed the scrollbar, but now I cannot see the whole page (the web page became non-scrollable). How can I solve this, do I have to use my own layout?

Thanks in advance.

like image 784
aylak Avatar asked May 09 '12 08:05

aylak


1 Answers

Instead of using overflow use overflow-x this worked for me and the horizontal scrollbar went away keeping the vertical scroll bar

like image 192
Nox Avatar answered Sep 26 '22 20:09

Nox