summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-12-16 14:40:11 -0800
committerJames Cook <james@lindenlab.com>2009-12-16 14:40:11 -0800
commitd2ba39861475ce716ad7fd4a176553dd1dc056ca (patch)
treecf6603acbf7c54f01bbdd4ea80e87f436ce07a6b
parent46f56f5d528ea3566f00e058250cb06361c2c10e (diff)
EXT-3522 Radio group layout not top-left based (was Sell Land floater missing sale of object)
Most radio button layouts were broken because the radio item generation code wasn't fixing up the rectangles. This may not be the right fix, I need to talk to Richard.
-rw-r--r--indra/llui/llradiogroup.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llui/llradiogroup.cpp b/indra/llui/llradiogroup.cpp
index 74e30cd633..366290fd70 100644
--- a/indra/llui/llradiogroup.cpp
+++ b/indra/llui/llradiogroup.cpp
@@ -116,6 +116,10 @@ void LLRadioGroup::initFromParams(const Params& p)
item_params.commit_callback.function = boost::bind(&LLRadioGroup::onClickButton, this, _1);
item_params.from_xui = p.from_xui;
+ // *HACK: Because we are explicitly building our own children,
+ // need to fix-up layout for topleft
+ LLRadioCtrl::setupParams(item_params, this);
+
LLRadioCtrl* item = LLUICtrlFactory::create<LLRadioCtrl>(item_params, this);
mRadioButtons.push_back(item);
}