Bug 126475 - Context menu displayed outside window after multiple cells (range) selection and scroll
Summary: Context menu displayed outside window after multiple cells (range) selection ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Context-Menu
  Show dependency treegraph
 
Reported: 2019-07-19 07:49 UTC by Konstantin Tkachenko
Modified: 2022-11-10 09:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshots of bug (deleted)
2019-07-22 09:10 UTC, Konstantin Tkachenko
Details
Visual presentation of the bug (100.02 KB, image/png)
2019-08-18 16:38 UTC, Light Code
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Tkachenko 2019-07-19 07:49:37 UTC
Description:
Context-menu is displayed incorrectly if called with keyboard button instead of rightbutton of mouse. It happens during range selection.

Steps to Reproduce:
I select range of cells in Calc with keyboard.
1.Select first cell
2.Press Ctrl-ArrowDown to select all cells in column till end of range.
3.Press context-menu button on keyboard (analog of right button on mouse). 
Context menu appears near first cell but I can't see it as cursor is on last cell of range.

Actual Results:
Context menu is displayed in hidden zone near first cell of selected range

Expected Results:
Context menu is displayed in visible zone near last selected cell (where current cursor is positioned)


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Roman Kuznetsov 2019-07-19 13:36:40 UTC
Konstantin, please always add info from Help->About LibreOffice dialog (and make it for this bug also) and what's shortcut do you use for show a context menu?
Comment 2 Konstantin Tkachenko 2019-07-22 08:06:25 UTC
Версия: 6.2.4.2 (x64)
ID сборки: 2412653d852ce75f65fbfa83fb7e7b669a126d64
Потоков ЦП: 4; ОС:Windows 10.0; Отрисовка ИП: по умолчанию; VCL: win; 
Локаль: en-US (ru_UA); Язык UI: ru-RU
Calc: threaded

I don't use shortcut. I press context-menu button. It is located near right Ctrl.
Comment 3 Roman Kuznetsov 2019-07-22 08:50:20 UTC
(In reply to Konstantin Tkachenko from comment #2)
> Версия: 6.2.4.2 (x64)
> ID сборки: 2412653d852ce75f65fbfa83fb7e7b669a126d64
> Потоков ЦП: 4; ОС:Windows 10.0; Отрисовка ИП: по умолчанию; VCL: win; 
> Локаль: en-US (ru_UA); Язык UI: ru-RU
> Calc: threaded
> 
> I don't use shortcut. I press context-menu button. It is located near right
> Ctrl.

Ok. Steps should be:

1. Select cell rang with Ctrl+Shift+Arrow
2. Push special Context menu key on keyboard (near with right Ctrl)

I can't repro it in

Version: 6.4.0.0.alpha0+ (x86)
Build ID: c738be4de6886a0c96b7d10df7e78c8b2964c135
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded

nor in

Версия: 6.3.0.1 (x86)
ID сборки: 41ac97386aba908b6db860cfb4cfe2da871886ae
Потоков ЦП: 4; ОС:Windows 6.1; Отрисовка ИП: по умолчанию; VCL: win; 
Локаль: ru-RU (ru_RU); UI-Language: ru-RU
Calc: threaded
Comment 4 Konstantin Tkachenko 2019-07-22 09:10:55 UTC
Created attachment 152898 [details]
Screenshots of bug

Attached PDF with screenshots
Comment 5 Konstantin Tkachenko 2019-07-22 09:11:22 UTC
Please take a look at screenshots
Comment 6 Guilhem Moulin 2019-07-31 00:12:19 UTC
(In reply to Konstantin Tkachenko from comment #4)
> Created attachment 152898 [details]
> Screenshots of bug

Unfortunately the attachment was lost due to a database corruption on our end.  Could you please upload it again?
Comment 7 Light Code 2019-08-18 16:36:34 UTC
--[software info]--
LibreOffice version: 6.3.0.4 (x64)
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 4
OS: Windows 6.1
UI render: default
VCL: win
Region settings: pl-PL (pl_PL); UI-Language: pl-PL
Calc: threaded
-------------------

I was able to somewhat recreate this bug.
First, you have to select whole column (Ctrl + Shift + Down Arrow). Then, you have to scroll down and then use the special context menu key (the one between right Alt and Ctrl on the keyboard).
Depending on how much you scrolled down, the context menu will appear overlaying the top toolbar or can even "escape" the window and overlay other things. If the window is in full screen, it results in context menu being displayed "outside" of the screen.

My suggestion is to change the way context menu is being displayed when it is triggered by keyboard. It should have a fixed position, for example the center of the screen or fixed to the left top corner of the active window. It would not be a problem, that it's blocking the toolbar as it's only temporary.

I attached a screenshot showing it "escaping" the window.
For any further info - please ask.

~~ Light Code
Comment 8 Light Code 2019-08-18 16:38:51 UTC
Created attachment 153489 [details]
Visual presentation of the bug
Comment 9 Buovjaga 2020-04-17 16:51:55 UTC
NEW per comment 7
Comment 10 QA Administrators 2022-04-18 03:25:17 UTC Comment hidden (obsolete)
Comment 11 Stéphane Guillou (stragu) 2022-11-10 09:31:30 UTC
Reproduced in recent master build:

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b57307e8f3553fcb292c9c11fcf58bcef3a6cb3c
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded