summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-27 20:57:01 +0000
committerMuthu Subramanian K <muthusuba@gmail.com>2013-03-04 12:48:37 +0000
commitb83c2e7ac73cc1e4b3ee954ff5c6cdbda6c41d8e (patch)
treed2122779562a66245701ca177e5140f48a2d2fb3
parentc6c886068ab9288a081efc33fa6902383e09aa3e (diff)
Resolves: fdo#61241 force area page to size itself for max visible controlslibreoffice-4-0-1
Change-Id: I2d67ce71528786ef300ab83ee1e5b1cad6b4abe8 (cherry picked from commit fc8022431a1684f3cfb1e2f7e4ec923a8e71df94) Reviewed-on: https://gerrit.libreoffice.org/2451 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Reviewed-by: Eike Rathke <erack@redhat.com> Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com> Tested-by: Muthu Subramanian K <muthusuba@gmail.com>
-rw-r--r--cui/source/tabpages/tparea.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index 87b410fff68c..47f4878ec753 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -765,6 +765,13 @@ SvxAreaTabPage::SvxAreaTabPage( Window* pParent, const SfxItemSet& rInAttrs ) :
aLbColor.SetAccessibleRelationMemberOf( &aFlProp );
aMtrFldOffset.SetAccessibleRelationLabeledBy(&aFlOffset);
aMtrFldOffset.SetAccessibleName(aFlOffset.GetText());
+
+ //fdo#61241 lock down size of this tab page until it's
+ //converted to .ui (remember to use some sizegroups
+ //that take into account hidden frames)
+ Size aSize(GetSizePixel());
+ set_width_request(aSize.Width());
+ set_height_request(aSize.Height());
}
// -----------------------------------------------------------------------