[Libreoffice-commits] core.git: sc/source

Thorsten Wagner (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 18 08:10:13 UTC 2019


 sc/source/ui/app/inputwin.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 2b4efc32e822bf41c4b729137718f3c70f692a89
Author:     Thorsten Wagner <thorsten.wagner.4 at gmail.com>
AuthorDate: Mon Jun 17 22:30:15 2019 +0200
Commit:     Katarina Behrens <Katarina.Behrens at cib.de>
CommitDate: Thu Jul 18 10:09:13 2019 +0200

    tdf#101443 Horizontal inset margin of Calc input bar increased
    
    Change-Id: Ic609da4b8b5fae0f556761c4493e490c82a6386d
    Reviewed-on: https://gerrit.libreoffice.org/74214
    Tested-by: Jenkins
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 14cd3595c5be..5732411a5bbf 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -999,9 +999,9 @@ ScTextWndGroup::ScTextWndGroup(vcl::Window* pParent, ScTabViewShell* pViewSh)
       maTextWnd(VclPtr<ScTextWnd>::Create(this, pViewSh)),
       maScrollBar(VclPtr<ScrollBar>::Create(this, WB_TABSTOP | WB_VERT | WB_DRAG))
 {
-    maTextWnd->SetPosPixel(Point(gnBorderWidth, gnBorderHeight));
+    maTextWnd->SetPosPixel(Point(2 * gnBorderWidth, gnBorderHeight));
     Size aSize = GetSizePixel();
-    maTextWnd->SetSizePixel(Size(aSize.Width() - 2 * gnBorderWidth, aSize.Height() - 2 * gnBorderHeight));
+    maTextWnd->SetSizePixel(Size(aSize.Width() - 4 * gnBorderWidth, aSize.Height() - 2 * gnBorderHeight));
     maTextWnd->Show();
     maTextWnd->SetQuickHelpText(ScResId(SCSTR_QHELP_INPUTWND));
     maTextWnd->SetHelpId(HID_INSWIN_INPUT);
@@ -1111,13 +1111,13 @@ void ScTextWndGroup::Resize()
         maScrollBar->SetLineSize(maTextWnd->GetTextHeight());
         maScrollBar->Resize();
         maScrollBar->Show();
-        maTextWnd->SetSizePixel(Size(aSize.Width() - aScrollBarSize.Width() - gnBorderWidth - 1,
+        maTextWnd->SetSizePixel(Size(aSize.Width() - aScrollBarSize.Width() - 3 * gnBorderWidth - 1,
                                      aSize.Height() - 2 * gnBorderHeight));
     }
     else
     {
         maScrollBar->Hide();
-        maTextWnd->SetSizePixel(Size(aSize.Width() - 2 * gnBorderWidth, aSize.Height() - 2 * gnBorderHeight));
+        maTextWnd->SetSizePixel(Size(aSize.Width() - 4 * gnBorderWidth, aSize.Height() - 2 * gnBorderHeight));
     }
     maTextWnd->Resize();
     Invalidate();


More information about the Libreoffice-commits mailing list