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: 2024-11-11 03:12 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 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
Comment 12 QA Administrators 2024-11-11 03:12:56 UTC
Dear Konstantin Tkachenko,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug