diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-12-12 21:28:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-12-13 09:52:15 +0100 |
commit | 115268087dea599d4248213b1085d07275c0a007 (patch) | |
tree | bee35359a87691ad3fff5bbadf18a8b0be18a873 /include | |
parent | 1b843d6ea39e23f4a5e34438b283afc85afc0e9e (diff) |
Resolves: tdf#120481 gradient subpage 12 pixels too short
because the max preferred-size of the subpages is taken and
applied as the size-request of the container parent.
But the container parent as a 6px border, so the subpages end
up hosted in a parent which allocates them 12px less than they hoped
for.
As they are instantiated in the parent to measure them, measure their
parent instead and that calculates in the parent's border to end up
with what they wanted
Change-Id: Ib270b90f9c2fed7f8bd042cc66d0d10ad3c6f183
Reviewed-on: https://gerrit.libreoffice.org/65058
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/tabdlg.hxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx index 6b40c8098ae4..10af733f7314 100644 --- a/include/sfx2/tabdlg.hxx +++ b/include/sfx2/tabdlg.hxx @@ -378,12 +378,6 @@ public: //TODO rename to GetFrameWeld when SfxTabPage doesn't inherit from anything weld::Window* GetDialogFrameWeld() const; - - //TODO rename to get_preferred_size when SfxTabPage doesn't inherit from anything - Size get_container_size() const - { - return m_xContainer->get_preferred_size(); - } }; #endif |