Bug 164910 - Offset / off-screen dialog window vertical positioning when using the dialog's "Shrink" and "Expand" toggle buttons to pick a cells range on a multi-monitors desktop
Summary: Offset / off-screen dialog window vertical positioning when using the dialog'...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dialog-UX
  Show dependency treegraph
 
Reported: 2025-01-29 06:05 UTC by Jeff Fortin Tam
Modified: 2025-01-30 22:32 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Demonstration video - with the Manage Conditional Formatting dialog (2.70 MB, video/mp4)
2025-01-29 06:05 UTC, Jeff Fortin Tam
Details
Demonstration video - with the Manage Names dialog (2.00 MB, video/mp4)
2025-01-29 06:06 UTC, Jeff Fortin Tam
Details
Screenshot of the multi-monitors screens layout configuration (48.77 KB, image/png)
2025-01-30 22:32 UTC, Jeff Fortin Tam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fortin Tam 2025-01-29 06:05:35 UTC
Created attachment 198839 [details]
Demonstration video - with the Manage Conditional Formatting dialog

## Summary

Please see the attached short demonstration videos, they will make the issue much clearer than words.

On GNOME on Wayland with the GTK version of LibreOffice, when you are using multiple screens at different heights, anywhere in Calc where you use the "Shrink" button next to a field specifying a range of cells, on some screen resolutions (such as 1600x900) the window will end up off-screen at the bottom.


## Hypothesis

It seems like this is what happens:

1. The "Shrink" button seemingly destroys the dialog and recreates a new one with just the minimal cells range input field with the "Expand" button

2. Clicking the "Expand" button does NOT destroy that shrunk window to replace it with a new expanded window; it seems like it instead reuses the shrunk window to pack the missing widgets back into it, forcing it to expand... but the window manager may not change its position, as the position was determined upon window creation.


## Other observations

This happens no matter what the GNOME Tweaks settings for these two settings are:

- Windows > Attach Modal Dialogs
- Windows > Center New Windows

This only happens when I am in multi-monitors mode, with one monitor arranged lower than the other (see attached screenshot for the layout's configuration). If I turn off the laptop's built-in 1920x1080 monitor and only use the external 1600x900 display, the bug does not occur.

I have observed this on GNOME Shell 47.2's Wayland session, regular scaling (no HiDPI), on Fedora 41, with:

Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: bb3cfa12c7b1bf994ecc5649a80400d06cd71002
CPU threads: 8; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 1 Jeff Fortin Tam 2025-01-29 06:06:09 UTC
Created attachment 198840 [details]
Demonstration video - with the Manage Names dialog
Comment 2 Jeff Fortin Tam 2025-01-30 22:32:56 UTC
Created attachment 198897 [details]
Screenshot of the multi-monitors screens layout configuration

In the recorded demonstration videos, the app was positioned on display #2 (marked as "primary" display), which is positioned higher than display #1.

In any case, under Wayland, apps/windows cannot arbitrarily choose where to position themselves, so you can't really depend on setting X Y coordinates when morphing a window's contents; it might be better to make sure you destroy/recreate a full window everytime when you enter "expand" mode, not just only when you enter "shrink" mode.