[PATCH libreoffice-4-0-1] Resolves: fdo#61241 force area page to size itself for max v...

Caolán McNamara (via_Code_Review) gerrit at gerrit.libreoffice.org
Wed Feb 27 13:15:15 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2451

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/51/2451/1

Resolves: fdo#61241 force area page to size itself for max visible controls

Change-Id: I2d67ce71528786ef300ab83ee1e5b1cad6b4abe8
(cherry picked from commit fc8022431a1684f3cfb1e2f7e4ec923a8e71df94)
---
M cui/source/tabpages/tparea.cxx
1 file changed, 7 insertions(+), 0 deletions(-)



diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index 87b410f..47f4878 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -765,6 +765,13 @@
     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());
 }
 
 // -----------------------------------------------------------------------

-- 
To view, visit https://gerrit.libreoffice.org/2451
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d67ce71528786ef300ab83ee1e5b1cad6b4abe8
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0-1
Gerrit-Owner: Caolán McNamara <caolanm at redhat.com>



More information about the LibreOffice mailing list