diff options
author | Tofu Buzzard <no-email> | 2011-03-16 22:44:29 +0000 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2011-03-16 22:44:29 +0000 |
commit | 0671b6abc5acee0e7df879f9a10506aa42c2169c (patch) | |
tree | baf736cc9a5f9de8fb1fa9f9bf95be0dacc7b72f /indra/llui/llfloater.cpp | |
parent | 1dffa1c78cd623fe8c930e128312260647bf91e7 (diff) | |
parent | 752b3fdbe044069635a2c6cd000c481561985954 (diff) |
merge
Diffstat (limited to 'indra/llui/llfloater.cpp')
-rw-r--r-- | indra/llui/llfloater.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index c425782715..35e0d9d890 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -2590,9 +2590,13 @@ void LLFloaterView::draw() LLRect LLFloaterView::getSnapRect() const { - LLRect snap_rect = getRect(); - snap_rect.mBottom += mSnapOffsetBottom; - snap_rect.mRight -= mSnapOffsetRight; + LLRect snap_rect = getLocalRect(); + + LLView* snap_view = mSnapView.get(); + if (snap_view) + { + snap_view->localRectToOtherView(snap_view->getLocalRect(), &snap_rect, this); + } return snap_rect; } |