From 073a7f5096d271f51885601d01bb1494daa6ff4a Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Tue, 9 Jul 2013 16:59:10 -0700 Subject: Layout tweaks of the social floater --- indra/newview/llfloatersocial.cpp | 4 +-- .../skins/default/xui/en/floater_social.xml | 19 +++++++------ .../skins/default/xui/en/panel_social_photo.xml | 31 +++++++++------------- .../skins/default/xui/en/panel_social_place.xml | 12 ++++----- .../skins/default/xui/en/panel_social_status.xml | 10 +++---- 5 files changed, 34 insertions(+), 42 deletions(-) (limited to 'indra') 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()); diff --git a/indra/newview/skins/default/xui/en/floater_social.xml b/indra/newview/skins/default/xui/en/floater_social.xml index 2d6f8a9a73..fe89e8ed5b 100644 --- a/indra/newview/skins/default/xui/en/floater_social.xml +++ b/indra/newview/skins/default/xui/en/floater_social.xml @@ -11,7 +11,7 @@ single_instance="true" reuse_instance="true" title="FACEBOOK" - height="437" + height="450" width="304"> @@ -43,9 +43,6 @@ filename="panel_social_place.xml" class="llsocialcheckinpanel" follows="all" - background_visible="true" - bg_alpha_color="DkGray" - bg_opaque_color="DkGray" label="PLACE" help_topic="panel_social_place" name="panel_social_place"/> @@ -53,8 +50,10 @@ + background_visible="true" + bg_alpha_color="DkGray" + bg_opaque_color="DkGray" + height="24"> - + name="snapshot_panel" + top="0" + height="360"> Comment (optional): - + left="6" + height="16" + top_pad="5"/> + height="25">