STORM-494 : pull into viewer-development

Merov Linden 2011-03-08 16:06:29 -08:00
commit 7dc7754ed3
1 changed files with 3 additions and 1 deletions

View File

@ -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)
{