mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(ntextinput): fix chopped off border due to fractional scaling + never swallow mousewheel events
This commit is contained in:
@@ -56,6 +56,7 @@ ColumnLayout {
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.minimumWidth: root.minimumInputWidth
|
||||
Layout.margins: Math.ceil(Style.borderS)
|
||||
implicitHeight: Style.baseWidgetSize * 1.1 * Style.uiScaleRatio
|
||||
|
||||
// This is important - makes the control accept focus
|
||||
@@ -112,7 +113,7 @@ ColumnLayout {
|
||||
mouse.accepted = true;
|
||||
}
|
||||
onWheel: wheel => {
|
||||
wheel.accepted = true;
|
||||
wheel.accepted = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +122,7 @@ ColumnLayout {
|
||||
id: inputContainer
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: Style.marginM
|
||||
anchors.rightMargin: Style.marginM
|
||||
anchors.rightMargin: 0
|
||||
clip: true
|
||||
z: 1
|
||||
|
||||
@@ -205,7 +206,7 @@ ColumnLayout {
|
||||
mouse.accepted = true;
|
||||
}
|
||||
onWheel: wheel => {
|
||||
wheel.accepted = true;
|
||||
wheel.accepted = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user