Bug 163559 - On Linux, edit fields in dialogs are taller than as defined in the BASIC IDE.
Summary: On Linux, edit fields in dialogs are taller than as defined in the BASIC IDE.
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-21 17:18 UTC by david mccracken
Modified: 2024-11-05 03:16 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Screen shots of a dialog on Windows and Linux computers (99.69 KB, application/vnd.oasis.opendocument.text)
2024-10-21 17:18 UTC, david mccracken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david mccracken 2024-10-21 17:18:41 UTC
Created attachment 197180 [details]
Screen shots of a dialog on Windows and Linux computers

In Linux, Libre renders dialog edit controls (including the edit of a combo-box) incorrectly. The width is as defined in the IDE but the height is much greater than as defined. This is not done to accommodate the text, whose characters are much shorter than the oversized frame. I turn off native rendering [hDlg.getPeer().setProperty("NativeWidgetLook", False)] in order to be able to dynamically change label background color. If I don't do this, the edit controls are rendered somewhat differently but still incorrectly. I create my dialogs in Windows, where all Libre versions on several test computers render them exactly as defined. I also test them on two Linux computers. In the one with Libre 6.4.7.2 on ubuntuMATE 20.04 the edits are two pixels taller than as defined. In the one with  Libre 24.2.6.2 on ubuntuMATE 24.04 they are five pixels taller. The attached document (ODT file) contains screen shots of the same dialog on two Linux and two Windows computers, all with different display resolutions and Libre versions.