From 72e5b40e93d5bee1e8b38bb3fa427823e970bea6 Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Fri, 5 Aug 2011 17:42:46 +0300 Subject: STORM-1309 WIP Proper truncation of region type, estate name and estate owner text. * Use ellipses for truncation. * Where applicable, set tooltip to contain the uncut text. * Leave a few pixels of padding between the text and the floater right border. LLView::getChild() never returns NULL, so no need to check its return value. --- indra/newview/llfloaterbuyland.cpp | 4 +++- indra/newview/skins/default/xui/en/floater_buy_land.xml | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/indra/newview/llfloaterbuyland.cpp b/indra/newview/llfloaterbuyland.cpp index 5cfdd69f7b..c643464825 100644 --- a/indra/newview/llfloaterbuyland.cpp +++ b/indra/newview/llfloaterbuyland.cpp @@ -530,6 +530,7 @@ void LLFloaterBuyLandUI::updateCovenantInfo() if (region_type) { region_type->setText(region->getLocalizedSimProductName()); + region_type->setToolTip(region->getLocalizedSimProductName()); } LLTextBox* resellable_clause = getChild("resellable_clause"); @@ -619,7 +620,8 @@ void LLFloaterBuyLandUI::updateFloaterCovenantText(const std::string &string, co void LLFloaterBuyLandUI::updateFloaterEstateName(const std::string& name) { LLTextBox* box = getChild("estate_name_text"); - if (box) box->setText(name); + box->setText(name); + box->setToolTip(name); } void LLFloaterBuyLandUI::updateFloaterLastModified(const std::string& text) 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 78bb48109b..b8a87a2063 100644 --- a/indra/newview/skins/default/xui/en/floater_buy_land.xml +++ b/indra/newview/skins/default/xui/en/floater_buy_land.xml @@ -240,7 +240,8 @@ supports [AMOUNT2] objects left_delta="125" name="region_type_text" top_delta="0" - width="175"> + use_ellipses="true" + width="170"> (unknown) + use_ellipses="true" + width="170"> (unknown) + use_ellipses="true" + width="170"> (unknown)