summaryrefslogtreecommitdiff
path: root/indra/llui/llview.cpp
diff options
context:
space:
mode:
authorrichard <none@none>2009-12-15 19:33:18 -0800
committerrichard <none@none>2009-12-15 19:33:18 -0800
commit3a02b9ec882c98009ae6c24913ee8a7a620b0f87 (patch)
tree51c3bccd75e8daf7bd10c31ee6fddbc0c823a092 /indra/llui/llview.cpp
parentcda1598fd6e17e0c0b641c73c540d8c898f2798f (diff)
added setBlockFromValue so setting a LLRect param in code will set the individual left, right, top, bottom values, for example
don't call setupParams when creating widgets from code moved Multiple param constraints into BaseBlock to remove extra scoping
Diffstat (limited to 'indra/llui/llview.cpp')
-rw-r--r--indra/llui/llview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp
index 7932b749a8..9f6fc1f298 100644
--- a/indra/llui/llview.cpp
+++ b/indra/llui/llview.cpp
@@ -2501,6 +2501,8 @@ void LLView::setupParams(LLView::Params& p, LLView* parent)
p.layout = parent->getLayout();
}
+ p.from_xui = true;
+
if (parent)
{
LLRect parent_rect = parent->getLocalRect();
@@ -2516,7 +2518,7 @@ void LLView::setupParams(LLView::Params& p, LLView* parent)
}
// convert negative or centered coordinates to parent relative values
- // Note: some of this logic matches the logic in TypedParam<LLRect>::getValueFromBlock()
+ // Note: some of this logic matches the logic in TypedParam<LLRect>::setValueFromBlock()
if (p.center_horiz)
{