diff options
author | richard <none@none> | 2010-02-18 14:09:55 -0800 |
---|---|---|
committer | richard <none@none> | 2010-02-18 14:09:55 -0800 |
commit | 1d1e4c7abe5c46cfafbc351e8cad3197d2befefc (patch) | |
tree | d54af525f241878f0446a04c93cf821ac4c340c9 /indra/llui/llfloater.cpp | |
parent | 08e3e05c0a1aa99bc6cf300191ea3c7feb97ff9a (diff) | |
parent | 7ed47f72255ce9fe9ab5b3212aabf495c5554436 (diff) |
merge
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); + } } } |