From fa7cebaacc36c2c56b95ad94a3480333c64ad4ac Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 12 May 2010 05:50:23 -0700 Subject: Revert "Changed the default minimize position to the top left..." Reverted because it ended up getting in the way of people's minimaps. Commit retained for posterity. This reverts commit 64e994a132b39e8ed994f0d5cf0914bb44d92507. --- linden/indra/llui/llfloater.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'linden/indra/llui/llfloater.cpp') diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp index 2033beb..f6451a1 100644 --- a/linden/indra/llui/llfloater.cpp +++ b/linden/indra/llui/llfloater.cpp @@ -2118,14 +2118,15 @@ void LLFloaterView::focusFrontFloater() void LLFloaterView::getMinimizePosition(S32 *left, S32 *bottom) { + S32 col = 0; LLRect snap_rect_local = getLocalSnapRect(); - for(S32 col = snap_rect_local.mLeft; - col < snap_rect_local.getWidth() - MINIMIZED_WIDTH; - col += MINIMIZED_WIDTH) + for(S32 row = snap_rect_local.mBottom; + row < snap_rect_local.getHeight() - LLFLOATER_HEADER_SIZE; + row += LLFLOATER_HEADER_SIZE ) //loop rows { - for(S32 row = snap_rect_local.mTop - LLFLOATER_HEADER_SIZE; - row > LLFLOATER_HEADER_SIZE; - row -= LLFLOATER_HEADER_SIZE) //loop rows + for(col = snap_rect_local.mLeft; + col < snap_rect_local.getWidth() - MINIMIZED_WIDTH; + col += MINIMIZED_WIDTH) { bool foundGap = TRUE; for(child_list_const_iter_t child_it = getChildList()->begin(); -- cgit v1.1