Skip to content
Snippets Groups Projects
Commit 3810a391 authored by Paul ProductEngine's avatar Paul ProductEngine
Browse files

STORM-494 FIXED Message Well window is undocked while opening Side bar

- To calculate properly whether the dockable floater visible or not, it's needed to get root view as dockable floater's parent
parent 9962560f
Branches
Tags
No related merge requests found
...@@ -160,8 +160,10 @@ bool LLDockControl::isDockVisible() ...@@ -160,8 +160,10 @@ bool LLDockControl::isDockVisible()
case TOP: case TOP:
{ {
// check is dock inside parent rect // check is dock inside parent rect
// assume that parent for all dockable flaoters
// is the root view
LLRect dockParentRect = LLRect dockParentRect =
mDockWidget->getParent()->calcScreenRect(); mDockWidget->getRootView()->calcScreenRect();
if (dockRect.mRight <= dockParentRect.mLeft if (dockRect.mRight <= dockParentRect.mLeft
|| dockRect.mLeft >= dockParentRect.mRight) || dockRect.mLeft >= dockParentRect.mRight)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment