From cab11177123ca4dcccd8b2d683879f8abb8765ce Mon Sep 17 00:00:00 2001 From: Lemmy Date: Mon, 9 Mar 2026 00:37:55 -0400 Subject: [PATCH] fix(ntextinput): fix chopped off border due to fractional scaling + never swallow mousewheel events --- Widgets/NTextInput.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Widgets/NTextInput.qml b/Widgets/NTextInput.qml index ba917c5d8..51e12a71e 100644 --- a/Widgets/NTextInput.qml +++ b/Widgets/NTextInput.qml @@ -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; } } }