Skip to content
Snippets Groups Projects
Commit eedc8687 authored by Richard Nelson's avatar Richard Nelson
Browse files

EXP-1364 FIX Debug console output covered by left toolbar buttons if present

EXP-1427 FIX Voice Settings dialog closes when selecting minimize option
parent 6d7ab5d1
No related branches found
No related tags found
No related merge requests found
...@@ -162,10 +162,15 @@ void LLDockableFloater::setVisible(BOOL visible) ...@@ -162,10 +162,15 @@ void LLDockableFloater::setVisible(BOOL visible)
void LLDockableFloater::setMinimized(BOOL minimize) void LLDockableFloater::setMinimized(BOOL minimize)
{ {
if(minimize) if(minimize && isDocked())
{ {
// minimizing a docked floater just hides it
setVisible(FALSE); setVisible(FALSE);
} }
else
{
LLFloater::setMinimized(minimize);
}
} }
LLView * LLDockableFloater::getDockWidget() LLView * LLDockableFloater::getDockWidget()
......
...@@ -1479,6 +1479,7 @@ BOOL LLFloater::handleMouseDown(S32 x, S32 y, MASK mask) ...@@ -1479,6 +1479,7 @@ BOOL LLFloater::handleMouseDown(S32 x, S32 y, MASK mask)
if(offerClickToButton(x, y, mask, BUTTON_CLOSE)) return TRUE; if(offerClickToButton(x, y, mask, BUTTON_CLOSE)) return TRUE;
if(offerClickToButton(x, y, mask, BUTTON_RESTORE)) return TRUE; if(offerClickToButton(x, y, mask, BUTTON_RESTORE)) return TRUE;
if(offerClickToButton(x, y, mask, BUTTON_TEAR_OFF)) return TRUE; if(offerClickToButton(x, y, mask, BUTTON_TEAR_OFF)) return TRUE;
if(offerClickToButton(x, y, mask, BUTTON_DOCK)) return TRUE;
// Otherwise pass to drag handle for movement // Otherwise pass to drag handle for movement
return mDragHandle->handleMouseDown(x, y, mask); return mDragHandle->handleMouseDown(x, y, mask);
...@@ -1584,6 +1585,12 @@ void LLFloater::setDocked(bool docked, bool pop_on_undock) ...@@ -1584,6 +1585,12 @@ void LLFloater::setDocked(bool docked, bool pop_on_undock)
{ {
mDocked = docked; mDocked = docked;
mButtonsEnabled[BUTTON_DOCK] = !mDocked; mButtonsEnabled[BUTTON_DOCK] = !mDocked;
if (mDocked)
{
setMinimized(FALSE);
}
updateTitleButtons(); updateTitleButtons();
storeDockStateControl(); storeDockStateControl();
......
...@@ -147,3 +147,12 @@ LLDebugView::~LLDebugView() ...@@ -147,3 +147,12 @@ LLDebugView::~LLDebugView()
gTextureCategoryView = NULL; gTextureCategoryView = NULL;
} }
void LLDebugView::draw()
{
LLView* floater_snap_region = getRootView()->getChildView("floater_snap_region");
LLRect debug_rect;
floater_snap_region->localRectToOtherView(floater_snap_region->getLocalRect(), &debug_rect, getParent());
setShape(debug_rect);
LLView::draw();
}
...@@ -55,6 +55,7 @@ class LLDebugView : public LLView ...@@ -55,6 +55,7 @@ class LLDebugView : public LLView
~LLDebugView(); ~LLDebugView();
void init(); void init();
void draw();
void setStatsVisible(BOOL visible); void setStatsVisible(BOOL visible);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment