Created attachment 172099 [details] Glade (above) vs. LibreOffice (below) GtkButtons can have an icon below or above the label. But apparently this is not taken into account when the height of the button is calculated and either the text is not visible when the icon is placed on top (or the icon when below the text. Happens for gen and kf5 but not gtk3. Version: 7.2.0.0.alpha1+ / LibreOffice Community Build ID: c29f91f3d7a0deb902b900ff07e6c32632b8c958 CPU threads: 8; OS: Linux 5.12; UI render: default; VCL: kf5 (cairo+xcb) (and gen) Locale: de-DE (en_US.UTF-8); UI: en-US Calc: threaded
Created attachment 172106 [details] Confirmed with gtk3 gen Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: dbd4110cc36011042c98549d997daa79e8065aba CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: id-ID (id_ID.UTF-8); UI: id-ID TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-13_01:08:22 Calc: threaded
yeah, it looks like the PushButton::GetOptimalSize isn't calculating the required size correctly. If I hack it to double the height then the text is visible. So the buttons render correctly and its just cut off.
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c66de7079f5ad92889a28b4a3f18adc4c4cf019f tdf#142337 Button::GetOptimalSize only considered image beside text case It will be available in 7.2.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.