summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/app/inputwin.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index a8ecde9b214b..7842c92a1869 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -937,7 +937,9 @@ void ScInputBarGroup::Resize()
long nLeft = GetPosPixel().X();
Size aSize = GetSizePixel();
- aSize.setWidth( std::max(long(nWidth - nLeft - LEFT_OFFSET), long(0)) );
+ //(-10) to allow margin between sidebar and formulabar
+ long margin = (comphelper::LibreOfficeKit::isActive()) ? 10 : 0;
+ aSize.setWidth( std::max(long(nWidth - nLeft - LEFT_OFFSET), long(0)) - margin);
maScrollbar->SetPosPixel(Point( aSize.Width() - maButton->GetSizePixel().Width(), maButton->GetSizePixel().Height() ) );