From 653a4a659624d52945b9bd40647002cf31085fe0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 27 Apr 2015 13:39:55 +0100 Subject: gtk3: semi-sane height for spinboxes Change-Id: I22fb833b59b7e2d749f8111d897f81899019e2d5 --- vcl/source/control/spinfld.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/source/control') diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 15ae57f4042a..972bded96429 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -667,7 +667,7 @@ void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rec vcl::Window *pBorder = pWin->GetWindow( WINDOW_BORDER ); // get the system's spin button size - ImplControlValue aControlValue; + EditBoxValue aControlValue(pWin->GetTextHeight()); Rectangle aBound; Point aPoint; @@ -721,7 +721,7 @@ void SpinField::Resize() { ImplCalcButtonAreas( this, aSize, maDropDownRect, maUpperRect, maLowerRect ); - ImplControlValue aControlValue; + EditBoxValue aControlValue(GetTextHeight()); Point aPoint; Rectangle aContent, aBound; @@ -920,7 +920,7 @@ Size SpinField::CalcMinimumSizeForText(const OUString &rString) const aSz.Width() += GetSettings().GetStyleSettings().GetScrollBarSize(); if ( GetStyle() & WB_SPIN ) { - ImplControlValue aControlValue; + EditBoxValue aControlValue(GetTextHeight()); Rectangle aArea( Point(), Size(100, aSz.Height())); Rectangle aEntireBound, aEntireContent, aEditBound, aEditContent; if ( -- cgit alue='distro/cib/libreoffice-6-0'>distro/cib/libreoffice-6-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sw/inc/IDocumentListItems.hxx
AgeCommit message (Expand)Author
2018-11-15sw_redlinehide_3: hide deleted numbered nodes in field dialogMichael Stahl
2016-06-16Remove the :: prefix in ::std for swMark Page
2016-03-22loplugin:constantparam in swNoel Grandin
2015-07-21loplugin:unusedmethods swNoel Grandin
2013-11-05fixincludeguards.sh: swThomas Arnhold
2013-10-20drop unnecessary tools/string includesCaolán McNamara
2013-10-15convert sw/inc/IDocumentListItems.hxx from String to OUStringNoel Grandin