Skip to content
Snippets Groups Projects
Commit ff6147d6 authored by Richard Linden's avatar Richard Linden
Browse files

fixed checkboxes growing larger over time

parent c4736548
No related branches found
No related tags found
No related merge requests found
...@@ -177,8 +177,8 @@ void LLCheckBoxCtrl::reshape(S32 width, S32 height, BOOL called_from_parent) ...@@ -177,8 +177,8 @@ void LLCheckBoxCtrl::reshape(S32 width, S32 height, BOOL called_from_parent)
btn_rect.setOriginAndSize( btn_rect.setOriginAndSize(
btn_rect.mLeft, btn_rect.mLeft,
btn_rect.mBottom, btn_rect.mBottom,
llmax(btn_rect.mRight, label_rect.mRight - btn_rect.mLeft), llmax(btn_rect.getWidth(), label_rect.mRight - btn_rect.mLeft),
llmax( label_rect.getHeight(), btn_rect.mTop)); llmax(label_rect.mTop - btn_rect.mBottom, btn_rect.getHeight()));
mButton->setShape(btn_rect); mButton->setShape(btn_rect);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment