diff options
author | Kent Quirk <q@lindenlab.com> | 2010-02-18 20:36:47 -0500 |
---|---|---|
committer | Kent Quirk <q@lindenlab.com> | 2010-02-18 20:36:47 -0500 |
commit | 6b48a59c9994b746a5f1ba2c7d74688ddc6d5215 (patch) | |
tree | bdec31d68e51269ee3c534e22e922c468d7e032e /indra/llui/llfloater.cpp | |
parent | 2d00beeed20d7fff74252099817776aeba399b42 (diff) | |
parent | c4b42ca78ff214eef66e9fafa369edd3c4ac08c0 (diff) |
merge changes from backing out the directory change of default to base
Diffstat (limited to 'indra/llui/llfloater.cpp')
-rw-r--r-- | indra/llui/llfloater.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index a55915af35..f3cd112b9a 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -2376,10 +2376,17 @@ void LLFloaterView::adjustToFitScreen(LLFloater* floater, BOOL allow_partial_out 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); + floater->setShape(new_rect); - floater->translateIntoRect( getLocalRect(), false ); + if (floater->followsRight()) + { + floater->translate(old_width - new_width, 0); + } + + if (floater->followsTop()) + { + floater->translate(0, old_height - new_height); + } } } |