diff options
| author | Richard Nelson <richard@lindenlab.com> | 2011-10-10 17:52:37 -0700 |
|---|---|---|
| committer | Richard Nelson <richard@lindenlab.com> | 2011-10-10 17:52:37 -0700 |
| commit | 6a570a9bdc2660e4db87e8e7a65b724e1ad8d1b2 (patch) | |
| tree | 9ae19a2dbcc4e314eedfe3c6372834b666cd6078 /indra/llui/lltoolbar.cpp | |
| parent | 068035959804d6a16a41ddb2ef62da00dceb2689 (diff) | |
fixed icons moving when clicking on icon-only toolbars
Diffstat (limited to 'indra/llui/lltoolbar.cpp')
| -rw-r--r-- | indra/llui/lltoolbar.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llui/lltoolbar.cpp b/indra/llui/lltoolbar.cpp index 6332b2674a..5ba54edf1c 100644 --- a/indra/llui/lltoolbar.cpp +++ b/indra/llui/lltoolbar.cpp @@ -852,3 +852,8 @@ void LLToolBarButton::onMouseCaptureLost() { mIsDragged = false; } + +void LLToolBarButton::reshape(S32 width, S32 height, BOOL called_from_parent) +{ + LLButton::reshape(mWidthRange.clamp(width), height, called_from_parent); +} |
