From b42efcfee36640fbded3c4116f8756e941b20d13 Mon Sep 17 00:00:00 2001 From: Dmitry Zaporozhan Date: Mon, 19 Apr 2010 13:00:12 +0300 Subject: Update for major task EXT-6564 - Fix wearable editing panels. Added temporary "edit" button to outfit list to allow QA test new wearable edit panels. Was not reviewed. --HG-- branch : product-engine --- indra/newview/llpaneloutfitedit.cpp | 16 +++++++--------- indra/newview/skins/default/xui/en/panel_outfit_edit.xml | 10 ++++++++++ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/indra/newview/llpaneloutfitedit.cpp b/indra/newview/llpaneloutfitedit.cpp index d78a448acb..847778f828 100644 --- a/indra/newview/llpaneloutfitedit.cpp +++ b/indra/newview/llpaneloutfitedit.cpp @@ -457,20 +457,18 @@ void LLPanelOutfitEdit::onInventorySelectionChange(const std::dequegetLastSelectedItem(); if (!item) return; - LLRect rect = item->getRect(); - LLRect btn_rect( - left_offset + rect.mRight - 50, - top_offset + rect.mTop, - left_offset + rect.mRight - 30, - top_offset + rect.mBottom); + LLRect item_rect; + mLookContents->localRectToOtherView(item->getRect(), &item_rect, getChild("outfit_wearables_panel")); + + // TODO button(and item list) should be removed (when new widget is ready) + LLRect btn_rect = mEditWearableBtn->getRect(); + btn_rect.set(item_rect.mRight - btn_rect.getWidth(), item_rect.mTop, item_rect.mRight, item_rect.mBottom); - mEditWearableBtn->setRect(btn_rect); + mEditWearableBtn->setShape(btn_rect); mEditWearableBtn->setEnabled(TRUE); if (!mEditWearableBtn->getVisible()) diff --git a/indra/newview/skins/default/xui/en/panel_outfit_edit.xml b/indra/newview/skins/default/xui/en/panel_outfit_edit.xml index 9ece4aead8..6fbb3229ac 100644 --- a/indra/newview/skins/default/xui/en/panel_outfit_edit.xml +++ b/indra/newview/skins/default/xui/en/panel_outfit_edit.xml @@ -154,6 +154,16 @@ sort_column="look_item_sort" name="look_item_sort" /> + +