summaryrefslogtreecommitdiff
path: root/indra/llui/lldockcontrol.cpp
diff options
context:
space:
mode:
authorTofu Buzzard <no-email>2011-03-09 10:56:03 -0800
committerTofu Buzzard <no-email>2011-03-09 10:56:03 -0800
commit63636e8ceabc7487e42427d9a6a83cad5116daa0 (patch)
treee912dda63824af14ea7a53c4e31b9ec22a514b44 /indra/llui/lldockcontrol.cpp
parent47f8b357eaa2af76e675c2235a071962f4203b5f (diff)
parent75e938cd75d82fcea7d58c556abf403b3629283e (diff)
merge
Diffstat (limited to 'indra/llui/lldockcontrol.cpp')
-rw-r--r--indra/llui/lldockcontrol.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llui/lldockcontrol.cpp b/indra/llui/lldockcontrol.cpp
index f6f5a0beb3..5ed2c27160 100644
--- a/indra/llui/lldockcontrol.cpp
+++ b/indra/llui/lldockcontrol.cpp
@@ -160,8 +160,10 @@ bool LLDockControl::isDockVisible()
case TOP:
{
// check is dock inside parent rect
+ // assume that parent for all dockable flaoters
+ // is the root view
LLRect dockParentRect =
- mDockWidget->getParent()->calcScreenRect();
+ mDockWidget->getRootView()->calcScreenRect();
if (dockRect.mRight <= dockParentRect.mLeft
|| dockRect.mLeft >= dockParentRect.mRight)
{