diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index efd8688dc649..c80c896f832f 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1381,8 +1381,17 @@ void ScCheckListMenuControl::launch(const tools::Rectangle& rRect) if (maConfig.mbRTL) { // In RTL mode, the logical "left" is visual "right". - tools::Long nLeft = aRect.Left() - aRect.GetWidth(); - aRect.SetLeft( nLeft ); + if (!comphelper::LibreOfficeKit::isActive()) + { + tools::Long nLeft = aRect.Left() - aRect.GetWidth(); + aRect.SetLeft( nLeft ); + } + else + { + // in LOK mode, rRect is in document pixel coordinates, so width has to be added + // to place the popup next to the (visual) left aligned button. + aRect.Move(aRect.GetWidth(), 0); + } } else if (mnWndWidth < aRect.GetWidth()) { |