Kaydet (Commit) 48a7d049 authored tarafından László Németh's avatar László Németh Kaydeden (comit) Miklos Vajna

tdf#92702 Unable to select menu items that were initially off-screen

Revert "Last item of menu with title cannot be hilighted"

This reverts commit 8ced97ca.

(Cherry-picked from the commit 4f1dca50)

Change-Id: Ic8c2195d4791900ada0296215c335b9dc39db220
Reviewed-on: https://gerrit.libreoffice.org/19048Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 23c21759
......@@ -190,7 +190,7 @@ void MenuFloatingWindow::ImplHighlightItem( const MouseEvent& rMEvt, bool bMBDow
long nY = GetInitialItemY();
long nMouseY = rMEvt.GetPosPixel().Y();
Size aOutSz = GetOutputSizePixel();
if ( ( nMouseY >= nY ) && ( nMouseY < ( aOutSz.Height() + nY ) ) )
if ( ( nMouseY >= nY ) && ( nMouseY < ( aOutSz.Height() - nY ) ) )
{
bool bHighlighted = false;
size_t nCount = pMenu->pItemList->size();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment