Commit 7496a288 authored by NiranV's avatar NiranV
Browse files

Fixed: (POTENTIAL) Viewer slowing down to a crawl whenever a object script...

Fixed: (POTENTIAL) Viewer slowing down to a crawl whenever a object script menu is opened after prolonged Viewer use.

--HG--
branch : Black Dragon
parent 44d08ea5
......@@ -43,6 +43,12 @@ LLDockControl::LLDockControl(LLView* dockWidget, LLFloater* dockableFloater,
mDockWidgetHandle = dockWidget->getHandle();
}
//BD
if (mDockableFloater)
{
mNonToolbarRegion = mDockableFloater->getRootView()->getChild<LLView>("non_toolbar_panel");
}
if (dockableFloater->isDocked())
{
on();
......@@ -97,7 +103,8 @@ void LLDockControl::setDock(LLView* dockWidget)
void LLDockControl::getAllowedRect(LLRect& rect)
{
rect = mDockableFloater->getRootView()->getChild<LLView>("non_toolbar_panel")->getRect();
//BD
rect = mNonToolbarRegion->getRect();
}
void LLDockControl::repositionDockable()
......
......@@ -91,6 +91,9 @@ private:
LLUIImagePtr mDockTongue;
S32 mDockTongueX;
S32 mDockTongueY;
//BD
LLView* mNonToolbarRegion;
};
#endif /* LL_DOCKCONTROL_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment