Bug 149768 - Template Manager dialog too small
Summary: Template Manager dialog too small
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.3.2 release
Hardware: All All
: medium normal
Assignee: Rafael Lima
URL:
Whiteboard: target:7.5.0 target:7.4.1
Keywords:
: 147177 (view as bug list)
Depends on:
Blocks: HiDPI
  Show dependency treegraph
 
Reported: 2022-06-29 09:36 UTC by ahb74chr
Modified: 2022-09-23 07:04 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (100.92 KB, image/jpeg)
2022-07-04 09:07 UTC, Heiko Tietze
Details
Size of template menu at my preferred Windows 10 display settings (220.98 KB, image/jpeg)
2022-07-08 10:19 UTC, ahb74chr
Details
Size of template menu in OpenOffice 4.1.1 at same Windows settings (275.14 KB, image/jpeg)
2022-07-08 10:20 UTC, ahb74chr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ahb74chr 2022-06-29 09:36:26 UTC
The pop up template box on a high resolution display is too small to be usable, not even large enough to display the name of even one template.
This is particularly a problem on upgrading to a 4k screen: the pop up box is tiny. It is an adequate size if the display resolution is reduced to 1366x768 but this is hardly acceptable as the computer is used for applications that require a higher resolution.
I have searched for a fix but none is listed so I believe it is a bug.
This is a problem with LibreOffice but not with OpenOffice 4.1.6 which displays a usable size box
Comment 1 Faisal 2022-07-03 19:48:33 UTC
Hi, can you also provide the LibreOffice version you are using and your environment? Go to Help > About LibreOffice and copy the information there and post it here.
Comment 2 Heiko Tietze 2022-07-04 09:07:57 UTC
Created attachment 181102 [details]
Screenshot

The screenshot is made on a high-res screen with 200% scaling. The Template Manager looks not too bad. Please be more specific about your settings.
Comment 3 ahb74chr 2022-07-04 11:24:10 UTC
That would be fine and that's what I'm used to with OpenOffice 4.1.1.
With Libreoffice 7.3.4.2 it's less than 1/5 the width of the screen.
I am running Windows 10 home 20H2 with 3840x2160 resolution. The scale is set at 300% to get the text a reasonable size; the size of the box does not change with the scaling
Comment 4 QA Administrators 2022-07-05 03:50:11 UTC Comment hidden (noise)
Comment 5 Heiko Tietze 2022-07-05 08:01:54 UTC
Mine was made with W11 at 200% zoom factor (in a virtual box) on a 13" / 2560 × 1600 px display with v4.0 (actually build from master meaning 7.5).

Anyone to confirm?
Comment 6 V Stuart Foote 2022-07-05 12:22:16 UTC
For OP, is your HiDPI 300% scaling set via Windows 10 Display Settings -> "Scale and Layout" droplist box?  Have you checked with "Advanced scaling settings" and entered a "Custom scaling" value.

Also, a hint as an aside for HiDPI use--change your LibreOffice icon theme selection from default "Colibre" to "Colibre (SVG)" via the Tools -> Options -> View panel. The source SVG will be parsed into a new set of resolution appropriate bitmap icons.
Comment 7 Heiko Tietze 2022-07-07 06:48:06 UTC
(In reply to V Stuart Foote from comment #6)
> For OP, is your HiDPI 300% scaling set via Windows 10 Display Settings ->
> "Scale and Layout" droplist box?  Have you checked with "Advanced scaling
> settings" and entered a "Custom scaling" value.

And please share a screenshot. Removing UX keyword until then.
Comment 8 ahb74chr 2022-07-08 10:19:25 UTC
Created attachment 181170 [details]
Size of template menu at my preferred Windows 10 display settings
Comment 9 ahb74chr 2022-07-08 10:20:56 UTC
Created attachment 181171 [details]
Size of template menu in OpenOffice 4.1.1 at same Windows settings
Comment 10 Heiko Tietze 2022-07-08 10:48:50 UTC
Rafael, do you want to look into this issue?
Comment 11 Rafael Lima 2022-07-08 20:37:51 UTC
(In reply to Heiko Tietze from comment #10)
> Rafael, do you want to look into this issue?

I don't have a HiDPI display, but I simulated it using the following command and indeed the Templates dialog is too small.

QT_SCALE_FACTOR=2 SAL_USE_VCLPLUGIN=kf5 ./instdir/program/soffice --writer

The Templates dialog has a fixed width/height of 740 x 500 (see [1])

[1] https://opengrok.libreoffice.org/xref/core/sfx2/uiconfig/ui/templatedlg.ui?r=b573ce56#41

Removing this fixed size seems to fix the problem.

I'll be submitting a patch.
Comment 12 Heiko Tietze 2022-08-17 13:26:12 UTC
Rafael made the dialog larger and it looks like this for me
100% https://imgur.com/LHFVATe
200% https://imgur.com/DA3XtS5
250% https://imgur.com/6Eho5TK
(running W11 in a Virtualbox on a MacBook Pro 13")

We decided to keep the dialog non-resizable as this is how most dialogs work in LibreOffice. And neither size nor position is stored to keep things simple.
Comment 13 Commit Notification 2022-08-18 11:48:28 UTC
Rafael Lima committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/410bff99a708371eed6a82677b44e2151a4a990a

tdf#149768 Do not fix Templates dialog width and height in pixels

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Commit Notification 2022-08-24 15:13:44 UTC
Rafael Lima committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/core/commit/271711523e5f0d1191012009de311cc15b2096c2

tdf#149768 Do not fix Templates dialog width and height in pixels

It will be available in 7.4.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 15 Rafael Lima 2022-09-22 14:02:35 UTC
*** Bug 147177 has been marked as a duplicate of this bug. ***
Comment 16 Heiko Tietze 2022-09-22 14:29:51 UTC
Rafael, please have a look at Draw. Seen it today with one tree line height only. Impress and all other modules work well. v7.4 on Linux
Comment 17 Rafael Lima 2022-09-22 14:40:05 UTC
(In reply to Heiko Tietze from comment #16)
> Rafael, please have a look at Draw. Seen it today with one tree line height
> only. Impress and all other modules work well. v7.4 on Linux

I've just tested LO Draw 7.4.1 on Kubuntu 22.04 (both with kf5 and gtk3). If you go to Files - Templates - Manage Templates the Template Manager will open as expected with a grid that fits 3 x 4 templates.

I also tested with my local build of the master branch.

Did you try in safe mode? Or on a clear user profile?

System info

Version: 7.4.1.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.4.1~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: bdf346830b735aa484fba0df94be71fd1ea5cdfd
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded