diff options
author | richard <none@none> | 2010-02-18 10:32:52 -0800 |
---|---|---|
committer | richard <none@none> | 2010-02-18 10:32:52 -0800 |
commit | 417526817286eb9b5f1690f1a2f83176b2896e6a (patch) | |
tree | e4e95dcdce8eaaa966ad705e2ffd08fff9bbfce6 /indra/llui/llfloater.cpp | |
parent | ca6caad68c51848cb02944b387f6a6f35f8f15bc (diff) | |
parent | 4514b57126b2dae295602778589217f6e22451b8 (diff) |
Merge
Diffstat (limited to 'indra/llui/llfloater.cpp')
-rw-r--r-- | indra/llui/llfloater.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index a55915af35..342c0684da 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -2373,13 +2373,16 @@ void LLFloaterView::adjustToFitScreen(LLFloater* floater, BOOL allow_partial_out new_width = llmax(new_width, min_width); new_height = llmax(new_height, min_height); - LLRect new_rect; - new_rect.setLeftTopAndSize(view_rect.mLeft,view_rect.mTop,new_width, new_height); - floater->reshape( new_width, new_height, TRUE ); - floater->setRect(new_rect); + if (floater->followsRight()) + { + floater->translate(old_width - new_width, 0); + } - floater->translateIntoRect( getLocalRect(), false ); + if (floater->followsTop()) + { + floater->translate(0, old_height - new_height); + } } } |