Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.9.0
-
None
-
-
72b558bd3 (dev), 1508afa3d (6.9), d374adec3 (tqtc/lts-6.8)
Description
With the approach taken in https://codereview.qt-project.org/c/qt/qtdeclarative/+/632999 to customize a TextArea's default context menu:
Component.onCompleted: {
...
const menu = textArea.ContextMenu.menu
menu.addItem(menuSeparatorComponent.createObject(menu.contentItem))
menu.addAction(fontDialogAction)
menu.addAction(colorDialogAction)
}
it seems the existing ContextMenu was "styled" according to the items it had at the beginning. On some styles, when new items are added, the menu becomes scrollable, which looks odd (and it's not even obvious that there are more menu items until you attempt scrolling). Probably it should get resized so that they fit.
Fusion, Universal, Material, and Basic styles are all fine. macOS and FluentWinUI3 styles are doing this scrolling within the menu.
Attachments
For Gerrit Dashboard: QTBUG-136256 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
645543,2 | Menu: force contentItem ListView layout before starting enter transition | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: NEW | +2 | 0 |