Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm trying to eliminate the buffer or "resizer" that exists between the North and Center layout. I have used fullPage=true b/c I like that it auto resizes. The border from the edge of the screen to the main body of content is set to a color and I accomplished this by setting the body background to the color and I the north and center layouts white. The problem is that the color of the background shows through separating the north and center. I used firefox/firebug and noticed that there is a resizer there that I can remove with this line:

.ui-layout-resizer, .ui-layout-resizer-north, ui-layout-resizer-open, .ui-layout-resizer-north-open 
{
    height: 0px !important;
}

Unfortunately Primefaces still places the center layout [I suspect] 6 px below north even thought the resizer is gone. The result is the background color showing through as a division. I have tried setting center to position relative and height to -6px to no effect. I admit, I'm not the most advanced with CSS but can anyone suggest how I can make a seamless transition with no gap from North to Center. I have tried messing with padding/border/margins to 0 but the issue after examing firebug appears to be the absolute placement of the "center" region 6px south of north so that the layout resizer has room to exist even though I deleted it.

The workaround is to put everything in the Center and do away with North but I don't know if this is bad design.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
188 views
Welcome To Ask or Share your Answers For Others

1 Answer

I can't really see what your code is so I'm a little unclear, but have you tried

.ui-layout-resizer, .ui-layout-resizer-north, ui-layout-resizer-open, .ui-layout-resizer-north-open 
{
    display: none;
}

It also would be a little easier to figure out if we had the source code.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...