summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersocial.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2013-07-09 16:59:10 -0700
committerMerov Linden <merov@lindenlab.com>2013-07-09 16:59:10 -0700
commit073a7f5096d271f51885601d01bb1494daa6ff4a (patch)
tree64a6f24bab6bcf2566c15f746648fe3f48a7406d /indra/newview/llfloatersocial.cpp
parentd869e706b8e664ff74e9ee9da4a43490d464a8b7 (diff)
Layout tweaks of the social floater
Diffstat (limited to 'indra/newview/llfloatersocial.cpp')
-rw-r--r--indra/newview/llfloatersocial.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfloatersocial.cpp b/indra/newview/llfloatersocial.cpp
index b90cc004d3..d8eb7c5e59 100644
--- a/indra/newview/llfloatersocial.cpp
+++ b/indra/newview/llfloatersocial.cpp
@@ -199,7 +199,6 @@ void LLSocialPhotoPanel::draw()
if (previewp && previewp->getThumbnailImage())
{
const LLRect& thumbnail_rect = mThumbnailPlaceholder->getRect();
- const LLRect& snapshot_rect = mSnapshotPanel->getRect();
const S32 thumbnail_w = previewp->getThumbnailWidth();
const S32 thumbnail_h = previewp->getThumbnailHeight();
@@ -208,7 +207,8 @@ void LLSocialPhotoPanel::draw()
// calc preview offset within the floater rect
S32 offset_x = thumbnail_rect.mLeft + local_offset_x;
- S32 offset_y = thumbnail_rect.mBottom - (snapshot_rect.mTop - thumbnail_rect.mTop);
+ // Hack : "15" is to compensate for "top=8" of "stack_photo" and "top=7" of "tabs"
+ S32 offset_y = thumbnail_rect.mBottom - 15;
mSnapshotPanel->localPointToOtherView(offset_x, offset_y, &offset_x, &offset_y, getParentByType<LLFloater>());