summaryrefslogtreecommitdiff
path: root/indra/llui/llbutton.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-09-27 19:22:09 -0700
committerRichard Linden <none@none>2011-09-27 19:22:09 -0700
commit78eb989e50e7f91298294d34a743f8ac0e3dcce1 (patch)
tree9b8775166525ee36661f95025763826c37610bd3 /indra/llui/llbutton.cpp
parent68d5141fb3ccb5e898caa83e9eab84d76134e28c (diff)
EXP-1258 FIX toggle buttons between icons and icons+text modes
fixed button layout for icon only buttons
Diffstat (limited to 'indra/llui/llbutton.cpp')
-rw-r--r--indra/llui/llbutton.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp
index e1bea086b2..f259e8027e 100644
--- a/indra/llui/llbutton.cpp
+++ b/indra/llui/llbutton.cpp
@@ -1015,6 +1015,7 @@ void LLButton::resize(LLUIString label)
min_width += overlay_width + mImgOverlayLabelSpace;
break;
case LLFontGL::HCENTER:
+ min_width = llmax(min_width, overlay_width + mLeftHPad + mRightHPad);
break;
default:
// draw nothing