diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-08-05 17:45:32 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-08-05 17:45:32 +0300 |
commit | 661601a99a2e6c69abba24a307bc64b70f2abfa6 (patch) | |
tree | 73b74dbf46674ca31f425e2040f13b1b4d52fb2b /indra/newview | |
parent | 72e5b40e93d5bee1e8b38bb3fa427823e970bea6 (diff) |
STORM-1309 WIP Fixed maturity rating icon overlapping the floater right border.
The code that places it now takes into account possible text truncation.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfloaterbuyland.cpp | 4 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/floater_buy_land.xml | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llfloaterbuyland.cpp b/indra/newview/llfloaterbuyland.cpp index c643464825..8223e89b64 100644 --- a/indra/newview/llfloaterbuyland.cpp +++ b/indra/newview/llfloaterbuyland.cpp @@ -508,7 +508,9 @@ void LLFloaterBuyLandUI::updateCovenantInfo() LLIconCtrl* rating_icon = getChild<LLIconCtrl>("rating_icon"); LLRect rect = rating_icon->getRect(); - S32 icon_left_pad = region_name->getRect().mLeft + region_name->getTextBoundingRect().getWidth() + ICON_PAD; + S32 region_name_width = llmin(region_name->getRect().getWidth(), region_name->getTextBoundingRect().getWidth()); + S32 icon_left_pad = region_name->getRect().mLeft + region_name_width + ICON_PAD; + region_name->setToolTip(region_name->getText()); rating_icon->setRect(rect.setOriginAndSize(icon_left_pad, rect.mBottom, rect.getWidth(), rect.getHeight())); switch(sim_access) diff --git a/indra/newview/skins/default/xui/en/floater_buy_land.xml b/indra/newview/skins/default/xui/en/floater_buy_land.xml index b8a87a2063..22cc058e46 100644 --- a/indra/newview/skins/default/xui/en/floater_buy_land.xml +++ b/indra/newview/skins/default/xui/en/floater_buy_land.xml @@ -208,7 +208,7 @@ supports [AMOUNT2] objects name="region_name_text" top_delta="0" use_ellipses="true" - width="155"> + width="150"> (unknown) </text> <icon |