diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2020-06-22 22:24:55 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-07-29 10:20:59 +0200 |
commit | 22a30af8b08114cac3626a9990a600a8ebb090a3 (patch) | |
tree | 2b8d1bd68b304c6b63407bf8b29b76d31bd12f07 /sc | |
parent | 02bbed0e23121b93fd574a557f54739a25f88394 (diff) |
LOK: added margin between sidebar and formula-bar
Margin code moved from online to core
Adding offset in online caused row/column header getting out of sync
Change-Id: Ie977e0f6c6180b2bc20c94b88fd1d56144ed5faa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96893
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99639
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 8322f0502dde..ea75795f1e10 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -919,7 +919,9 @@ void ScInputBarGroup::Resize() return; } Size aSize = GetSizePixel(); - aSize.setWidth(pParent->GetSizePixel().Width() - GetPosPixel().X() - LEFT_OFFSET); + //(-10) to allow margin between sidebar and formulabar + long margin = (comphelper::LibreOfficeKit::isActive()) ? 10 : 0; + aSize.setWidth(pParent->GetSizePixel().Width() - GetPosPixel().X() - LEFT_OFFSET - margin); aSize.setHeight(maTextWndGroup->GetPixelHeightForLines(maTextWndGroup->GetNumLines())); SetSizePixel(aSize); |