summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-05-12 22:15:56 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-05-12 22:15:56 +0300
commit4d3a8f4a6cd2bef58bc95854af0325ca0190351f (patch)
tree293a793572a7f14a6bb5b1b086d2ea23a8c19cfa /indra
parenta6d867bccea37467d51cd037d6a58aca02a27e97 (diff)
SL-19649 Don't update bounding rect excesively
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/llview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp
index 7720c4ad14..da7868d804 100644
--- a/indra/llui/llview.cpp
+++ b/indra/llui/llview.cpp
@@ -311,7 +311,13 @@ bool LLView::addChild(LLView* child, S32 tab_group)
}
child->mParentView = this;
- updateBoundingRect();
+ if (getVisible() && child->getVisible())
+ {
+ // if child isn't visible it won't affect bounding rect
+ // if current view is not visible it will be recalculated
+ // on visibility change
+ updateBoundingRect();
+ }
mLastTabGroup = tab_group;
return true;
}