Bug 164818 - UI: Sparklines Properties dialog is not modal
Summary: UI: Sparklines Properties dialog is not modal
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.4.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Sparklines
  Show dependency treegraph
 
Reported: 2025-01-23 11:09 UTC by Michael Otto
Modified: 2025-10-24 07:26 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Otto 2025-01-23 11:09:41 UTC
PRECONDITION:
any Calc file opened, any cell selected
Insert > Sparklines: open Sparklines Properties

PROBLEM DESCRIPTION:
even if the cursor is located in e.g. "Line thickness", the Calc main window can be operated (including main menu)
click in a cell sets the Output range as if the "Sparklines Properties: Output range" window were open

N.B.:
When switching to a different OpenOffice window, the Sparklines Properties window hides. Switching to a different e.g. browser window, the Sparklines Properties window stays above the Calc window.

EXPECTED BEHAVIOUR:
Sparklines Properties to be modal except after [Shrink] for the Input range or Output range selection

Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: bb3cfa12c7b1bf994ecc5649a80400d06cd71002
CPU threads: 2; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-US (de_DE.UTF-8); UI: en-US
Calc: threaded
Comment 1 Heiko Tietze 2025-10-24 07:02:29 UTC
Indeed, the range picker becomes unconditionally active - would expect it only at the range field. This is however the same issue for other dialogs like the Define Range.

Tomaz, do you see a chance to improve this? In case of sparklines we have two ranges and it's somewhat surprising to overwrite the last active, meaning if input was chosen and the focus is now on line thickness any selection in the sheet goes into input. Or output if this was active before.

Simply checking the model option does not work as the range picker itself wont allow a selection anymore.
Comment 2 Tomaz Vajngerl 2025-10-24 07:26:57 UTC
Any Dialog that is ScAnyRefDlgController has this issue(s), not just Sparkline Dialog. This isn't and can't be a modal (at least to the OS), because of cell selection. 
It's strange that everything doesn't get disabled, which I think is the idea - seems an issue with that specific control then somehow. I also noticed that you can add sheets, also move to gallery and add galley elements. 

Not sure I have time to improve this unfortunately. I'm also not familiar how that ScAnyRefDlgController works...