Bug 97894 - LibreOffice windows should have a minimum size
Summary: LibreOffice windows should have a minimum size
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 142649 142671 144237 145820 147075 149510 151870 155616 156935 (view as bug list)
Depends on:
Blocks: UI 125543
  Show dependency treegraph
 
Reported: 2016-02-16 08:20 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2023-12-11 07:58 UTC (History)
21 users (show)

See Also:
Crash report or crash signature:


Attachments
video demonstrating minimal window size on Ubuntu 18.04 (2.31 MB, video/mp4)
2021-11-23 06:00 UTC, Stéphane Guillou (stragu)
Details
Opened Calc window appearing a line (12.95 KB, image/png)
2023-03-26 16:07 UTC, nickeforos
Details
Calc Window (9.99 KB, image/png)
2023-06-14 10:46 UTC, nickeforos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2016-02-16 08:20:54 UTC
On Windows you cannot resize LO windows below a certain size - on Linux there is no such restriction. You can resize the window until is is only a 1px thin bar.

There should be a minimum size on Linux as well.
Comment 1 Buovjaga 2016-02-17 12:14:39 UTC
Yeah. NEW.
Comment 2 Samuel Mehrbrodt (allotropia) 2016-02-29 10:26:10 UTC
Caolan, is this a GTK issue?
Comment 3 Caolán McNamara 2016-02-29 14:42:47 UTC
Its probably a failure to set a min size via SetMinOutputSizePixel. Some backends might set the min size to the initial size if no other is set.

Its not immediately obvious to me what the min size of the application windows should be or where exactly to calculate and set it.
Comment 4 QA Administrators 2017-03-06 15:29:33 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2019-12-03 14:57:23 UTC Comment hidden (obsolete)
Comment 6 BogdanB 2021-07-26 20:45:44 UTC
*** Bug 142649 has been marked as a duplicate of this bug. ***
Comment 7 Lafricain 2021-11-21 15:41:08 UTC
I have the same problem with ubuntu 20.04 and LO 7.2
Comment 8 Stéphane Guillou (stragu) 2021-11-23 05:59:35 UTC
Also reproducible on:

Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: eec32be26d5d5805c1cb8cb53ce9702c04829819
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

And with gen VCL too:

Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: eec32be26d5d5805c1cb8cb53ce9702c04829819
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: x11
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

On Ubuntu 18.04.

This is not only an issue with resizing them manually to a size too small. Sometimes (not sure how to reproduce yet), the window opens in a minimal size, making it very had to find.
Comment 9 Stéphane Guillou (stragu) 2021-11-23 06:00:32 UTC
Created attachment 176439 [details]
video demonstrating minimal window size on Ubuntu 18.04

Desktop environment is Budgie.
Comment 10 yan102 2021-11-23 12:19:33 UTC
Same problem in ubuntu 20.04 on libreoffice 7.2.2.2.
Comment 11 BinLi 2022-10-19 08:26:38 UTC
Also reproducible on 22.04, libreoffice-writer 1:7.3.6-0ubuntu0.22.04.1
Comment 12 hasezoey 2023-02-27 11:29:58 UTC
Also just ran into this issue, and at first i though "why is libreoffice not starting", turns out if libreoffice is started with any arguments like "--calc" or "--calc /somefile", then sometimes libreoffice decides to start with 1px windows (maybe even 0?) making me think it somehow is not progressing since the splash screen, but this does not happen if not started with a argument (like just "libreoffice")

Operating System: Manjaro Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX Vega
Manufacturer: ASUS
Comment 13 Buovjaga 2023-02-27 12:31:11 UTC
*** Bug 147075 has been marked as a duplicate of this bug. ***
Comment 14 Buovjaga 2023-03-06 09:40:37 UTC
*** Bug 145820 has been marked as a duplicate of this bug. ***
Comment 15 nickeforos 2023-03-26 16:07:03 UTC
Hi,
Is there any progress on this?

The bug has been reported in 2016 and it still hasn't been resolved.
Comment 16 nickeforos 2023-03-26 16:07:55 UTC
Created attachment 186233 [details]
Opened Calc window appearing a line
Comment 17 Stéphane Guillou (stragu) 2023-04-14 12:08:43 UTC
*** Bug 151870 has been marked as a duplicate of this bug. ***
Comment 18 Stéphane Guillou (stragu) 2023-04-14 23:15:15 UTC
*** Bug 144237 has been marked as a duplicate of this bug. ***
Comment 19 Stéphane Guillou (stragu) 2023-04-18 07:18:47 UTC
*** Bug 149510 has been marked as a duplicate of this bug. ***
Comment 20 Adalbert Hanßen 2023-04-18 19:00:35 UTC
(In reply to Stéphane Guillou (stragu) from comment #18)
> *** Bug 144237 has been marked as a duplicate of this bug. ***

I came across this bug report searching how one would have to call SetMinOutputSizePixel to implement a minimum width of 5 cm as I proposed in #144237, Comment 8. Unfortunately I found no description for SetMinOutputSizePixel mentioned above. But searching for it I came across gtk_widget_set_size_request which has two parameters in pixels for width and height. Probably the screen's dpi-value can be read somehow, so ceil(50.0*dpi/2.54) would be a proper minimum width, ceil(8.0*dpi/2.54) would be a proper minimum height. Unfortunately I am not experienced enough to know where this call has to be placed.
Comment 21 Stéphane Guillou (stragu) 2023-06-01 07:48:29 UTC
*** Bug 155616 has been marked as a duplicate of this bug. ***
Comment 22 nickeforos 2023-06-14 10:46:03 UTC
Created attachment 187905 [details]
Calc Window
Comment 23 nickeforos 2023-06-14 10:48:29 UTC
Any progress on this? It has been 7 years...
Comment 24 Stéphane Guillou (stragu) 2023-07-28 00:46:34 UTC
*** Bug 142671 has been marked as a duplicate of this bug. ***
Comment 25 putr4.s 2023-10-28 11:07:52 UTC
*** Bug 156935 has been marked as a duplicate of this bug. ***