diff options
| author | Paul ProductEngine <pguslisty@productengine.com> | 2011-02-26 17:26:34 +0200 | 
|---|---|---|
| committer | Paul ProductEngine <pguslisty@productengine.com> | 2011-02-26 17:26:34 +0200 | 
| commit | 3810a391d018f480487e8012654b9b75d3525ced (patch) | |
| tree | c3f23b029301ee30dc46538e6fc348b33db6222f /indra | |
| parent | 9962560f57eb4bcf1b3451f5d86c963d5d6fcf5c (diff) | |
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
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llui/lldockcontrol.cpp | 4 | 
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)  				{ | 
