From f255ed7647379ebc975bb39197db8ab04d34ecb6 Mon Sep 17 00:00:00 2001 From: Kadah_Coba Date: Sat, 6 Jul 2013 16:53:08 -0700 Subject: [PATCH] Fix for jumping floaters with FSLegacyEdgeSnap --- indra/llui/llfloater.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index 22fa9a49c6..64afc23b47 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -2851,11 +2851,18 @@ void LLFloaterView::shiftFloaters(S32 x_offset, S32 y_offset) void LLFloaterView::refresh() { - LLRect snap_rect = getSnapRect(); - if (snap_rect != mLastSnapRect) + // Fix for bad edge snapping + // This will stop jumping floaters on chatbar show + // But will stop floaters from bumping out of the way of toolbars + static LLUICachedControl legacy_snap ("FSLegacyEdgeSnap", false); + if (!legacy_snap) { - reshape(getRect().getWidth(), getRect().getHeight(), TRUE); - } + LLRect snap_rect = getSnapRect(); + if (snap_rect != mLastSnapRect) + { + reshape(getRect().getWidth(), getRect().getHeight(), TRUE); + } + }// Fix for bad edge snapping // Constrain children to be entirely on the screen for ( child_list_const_iter_t child_it = getChildList()->begin(); child_it != getChildList()->end(); ++child_it)