Bug 150774 - ListBox dropdown on the FontFeatures dialog detached from parent
Summary: ListBox dropdown on the FontFeatures dialog detached from parent
Status: RESOLVED DUPLICATE of bug 149805
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2022-09-04 12:38 UTC by RGB
Modified: 2022-09-15 11:56 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
Screen capture showing the problem (439.70 KB, video/mp4)
2022-09-04 12:38 UTC, RGB
Details
The Character... -> Features... dialog lb for Stylisic Alternatives detached (134.66 KB, image/png)
2022-09-04 19:16 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RGB 2022-09-04 12:38:14 UTC
Created attachment 182198 [details]
Screen capture showing the problem

There is a glitch when resizing the new font Features menu on 7.5 alpha: the drop down menus for additional features get detached from the original box (see attached video) 

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 4060230ca5124f7bdd658f2aa5ee5527375edb86
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded

You need to use a font that support additional parameters for its OpenType tags. In the example I use Libertinus Serif, but also happens with EB Garamond, Gentium Plus, Junicode and others.
Comment 1 V Stuart Foote 2022-09-04 19:16:03 UTC
Created attachment 182210 [details]
The Character... -> Features... dialog lb for Stylisic Alternatives detached

Confirmed on Windows builds
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: dc92a4d973086ce8a6a5f75ba0f4d4c9ca05537a
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

No resize needed, the lb opens detached from the Features... dialog.
Comment 2 ⁨خالد حسني⁩ 2022-09-04 19:30:39 UTC
I this really a new issue, previously the drop down would be shown only in Graphite fonts, have you tested that on older releases?
Comment 3 RGB 2022-09-04 19:42:58 UTC
(In reply to خالد حسني from comment #2)
> I this really a new issue, previously the drop down would be shown only in
> Graphite fonts, have you tested that on older releases?

Just tested on LibO 7.3.3 with Linux Libertine G font: no problem there, menus stay attached.
Comment 4 V Stuart Foote 2022-09-04 20:11:50 UTC
likewise on Windows

Version: 7.3.6.1 (x64) / LibreOffice Community
Build ID: 92b673af3a5e8f7cf4716be88dfaca424612f244
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

and

Version: 7.4.1.1 (x64) / LibreOffice Community
Build ID: 0a046a10cbf1679eea5538bd3ab63156caa3a036
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

the lb are positioned correctly. So something recent.
Comment 5 V Stuart Foote 2022-09-04 20:18:09 UTC
checked the Graphite fonts on 7.3.6 and 7.4.1, and the list box in both builds are attached the FontFeatures dialog.  But in today's master they are detached as are the lb for other fonts that have them.
Comment 6 Caolán McNamara 2022-09-05 14:26:43 UTC
We might have two different but similar bugs here? In the windows screenshot the menu is placed relative to the toplevel window at a distance which, if relative to the dialog, would be in the right place. While in the kf5 case I can't see any rationale to the location.

At a guess for the windows case:

commit a49245e04d45735aa76ad7720657c83530ba9ed8
Date:   Mon Aug 29 13:57:10 2022 +0200

    Don't position dialogs relative to other dialogs

is recent and is possibly relevant.
Comment 7 Gabor Kelemen (allotropia) 2022-09-08 12:05:45 UTC
Probably this is just a duplicate of bug 150718
Comment 8 Caolán McNamara 2022-09-08 12:49:01 UTC
I think the windows case in comment #2 is a dup of that, and the other issue has the same commit id that I suspected for that, but its a windows only patch and the comment #1 is kf5 so I think there's something else going on there, but quite possibly a related one
Comment 9 Heiko Tietze 2022-09-09 12:39:10 UTC
Hopefully it's not a fallout from bug 146928.
Comment 10 Gabor Kelemen (allotropia) 2022-09-15 11:54:57 UTC
The qt5 issue was bibisected in linux-7.5 to:

https://git.libreoffice.org/core/+/afc828b9833b7a612369e95606ba56d41ef2c369

author	Jan-Marek Glogowski <glogow@fbihome.de>	Sat May 28 23:47:21 2022 +0200
committer	Jan-Marek Glogowski <glogow@fbihome.de>	Tue Jun 21 17:26:06 2022 +0200

VCL expect correct frame size for native menubars

Worked fine in 7.4.

I used the Features button on the "Linux Libertine G" font for testing.
Comment 11 Gabor Kelemen (allotropia) 2022-09-15 11:56:37 UTC
Hm, this is the same bibisected commit & error as in bug 149805

*** This bug has been marked as a duplicate of bug 149805 ***