summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-10-26 10:23:20 -0700
committerRichard Linden <none@none>2010-10-26 10:23:20 -0700
commitff6147d6bdb3559e4dd36ccc0961ea4c46f6cd76 (patch)
tree7c6f0949c3a66c634651353a8982843033279686 /indra/llui
parentc47365480ccd6daf09c5e6f1f0672f5e0c42fadc (diff)
fixed checkboxes growing larger over time
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llcheckboxctrl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llcheckboxctrl.cpp b/indra/llui/llcheckboxctrl.cpp
index 58ace3c548..4fe444c1a4 100644
--- a/indra/llui/llcheckboxctrl.cpp
+++ b/indra/llui/llcheckboxctrl.cpp
@@ -177,8 +177,8 @@ void LLCheckBoxCtrl::reshape(S32 width, S32 height, BOOL called_from_parent)
btn_rect.setOriginAndSize(
btn_rect.mLeft,
btn_rect.mBottom,
- llmax(btn_rect.mRight, label_rect.mRight - btn_rect.mLeft),
- llmax( label_rect.getHeight(), btn_rect.mTop));
+ llmax(btn_rect.getWidth(), label_rect.mRight - btn_rect.mLeft),
+ llmax(label_rect.mTop - btn_rect.mBottom, btn_rect.getHeight()));
mButton->setShape(btn_rect);
}