When unhiding views, we need to update the clipping deep, or child views may be
omitted. This fixes bug #181, or at least the part of it I can reproduce. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16442 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0cd3fd40ec
commit
a9f98d52a3
@ -972,8 +972,6 @@ ViewLayer::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
|
||||
void
|
||||
ViewLayer::SetHidden(bool hidden)
|
||||
{
|
||||
// TODO: test...
|
||||
|
||||
if (fHidden != hidden) {
|
||||
fHidden = hidden;
|
||||
|
||||
@ -982,8 +980,10 @@ ViewLayer::SetHidden(bool hidden)
|
||||
bool oldVisible = fVisible;
|
||||
UpdateVisibleDeep(fParent->IsVisible());
|
||||
if (oldVisible != fVisible) {
|
||||
// include or exclude us from the parent area
|
||||
fParent->RebuildClipping(false);
|
||||
// Include or exclude us from the parent area, and update the
|
||||
// children's clipping as well when the view will be visible
|
||||
fParent->RebuildClipping(!hidden);
|
||||
|
||||
if (fWindow) {
|
||||
// trigger a redraw
|
||||
BRect clippedBounds = Bounds();
|
||||
|
Loading…
x
Reference in New Issue
Block a user