Fix for jumping floaters with FSLegacyEdgeSnap

meow-7.2.2
Kadah_Coba 2013-07-06 16:53:08 -07:00
parent 0e012f6477
commit f255ed7647
1 changed files with 11 additions and 4 deletions

View File

@ -2851,11 +2851,18 @@ void LLFloaterView::shiftFloaters(S32 x_offset, S32 y_offset)
void LLFloaterView::refresh()
{
LLRect snap_rect = getSnapRect();
if (snap_rect != mLastSnapRect)
// <FS:KC> 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<bool> 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);
}
}// <FS:KC> 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)