From 64e994a132b39e8ed994f0d5cf0914bb44d92507 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 3 May 2010 23:25:14 -0700 Subject: Changed the default minimize position to the top left so it doesn't block chat anymore --- linden/indra/llui/llfloater.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'linden/indra/llui') diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp index f6451a1..2033beb 100644 --- a/linden/indra/llui/llfloater.cpp +++ b/linden/indra/llui/llfloater.cpp @@ -2118,15 +2118,14 @@ void LLFloaterView::focusFrontFloater() void LLFloaterView::getMinimizePosition(S32 *left, S32 *bottom) { - S32 col = 0; LLRect snap_rect_local = getLocalSnapRect(); - for(S32 row = snap_rect_local.mBottom; - row < snap_rect_local.getHeight() - LLFLOATER_HEADER_SIZE; - row += LLFLOATER_HEADER_SIZE ) //loop rows + for(S32 col = snap_rect_local.mLeft; + col < snap_rect_local.getWidth() - MINIMIZED_WIDTH; + col += MINIMIZED_WIDTH) { - for(col = snap_rect_local.mLeft; - col < snap_rect_local.getWidth() - MINIMIZED_WIDTH; - col += MINIMIZED_WIDTH) + for(S32 row = snap_rect_local.mTop - LLFLOATER_HEADER_SIZE; + row > LLFLOATER_HEADER_SIZE; + row -= LLFLOATER_HEADER_SIZE) //loop rows { bool foundGap = TRUE; for(child_list_const_iter_t child_it = getChildList()->begin(); -- cgit v1.1