Skip to content

Commit

Permalink
fix: Menu's focus not be clean
Browse files Browse the repository at this point in the history
The bug can be see at QTBUG-99897.

pms: BUG-300051
  • Loading branch information
18202781743 committed Jan 13, 2025
1 parent 3946dbf commit b7e56a4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions qt6/src/qml/Menu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ T.Menu {
blurControl: control
}

contentItem: Control {
topPadding: 0
bottomPadding: topPadding
leftPadding: 0
rightPadding: leftPadding

contentItem: ColumnLayout {
contentItem: FocusScope {
// QTBUG-99897 focus doesn't be clear.
width: viewLayout.width
height: viewLayout.height
ColumnLayout {
id: viewLayout
spacing: 0

Expand Down

0 comments on commit b7e56a4

Please sign in to comment.