summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/tpbitmap.cxx
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2019-11-01 20:33:09 +0300
committerAndras Timar <andras.timar@collabora.com>2019-11-01 22:59:52 +0100
commit80109586e6cb6d3e2e0a53a9079c3125ec9b8368 (patch)
tree0aa3aa8fcbc6285313e6d708a18a10568be56d93 /cui/source/tabpages/tpbitmap.cxx
parent9495b7c935097a7f18896b3835e3a8cc6b0db2ce (diff)
tdf#126128 Reduce page properties dialog's height.
Change-Id: Ie35c9cb4c9b134a94f3a125dd800936b7160950c Reviewed-on: https://gerrit.libreoffice.org/81910 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'cui/source/tabpages/tpbitmap.cxx')
-rw-r--r--cui/source/tabpages/tpbitmap.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx
index 7d1f17be236b..946da898ad08 100644
--- a/cui/source/tabpages/tpbitmap.cxx
+++ b/cui/source/tabpages/tpbitmap.cxx
@@ -119,8 +119,11 @@ SvxBitmapTabPage::SvxBitmapTabPage(weld::Container* pPage, weld::DialogControlle
m_xBtnImport->hide();
// Calculate size of display boxes
+
+ Size aBitmapLBSize = getPagePropertiesOptimalSize(m_xBitmapLB->GetDrawingArea()->get_ref_device());
+ m_xBitmapLB->set_size_request(aBitmapLBSize.Width(), aBitmapLBSize.Height());
+
Size aSize = getDrawPreviewOptimalSize(m_aCtlBitmapPreview.GetDrawingArea()->get_ref_device());
- m_xBitmapLB->set_size_request(aSize.Width(), aSize.Height());
m_xCtlBitmapPreview->set_size_request(aSize.Width(), aSize.Height());
SfxItemPool* pPool = m_rXFSet.GetPool();