slint
slint copied to clipboard
TextInput 'single-line: true' does not work
Bug Description
In the example below on Skia the text just wraps and ignore the 'single-line'. While on WASM you can no longer type once you hit the hit the end of the line (which is not correct either) and as an extra bonus bug the cursor jumps to the start of the next line and sits there pulsing.
Reproducible Code (if applicable)
import { VerticalBox } from "std-widgets.slint";
export component Demo {
VerticalBox {
alignment: start;
TextInput {
width: 200px;
vertical-alignment: center;
horizontal-alignment: left;
font-size: 12px;
text-cursor-width: 2px;
selection-background-color: #3984ec;
single-line: true;
}
}
}
Environment Details
- Slint Version: 1.11
- Platform/OS: MacOS, Wasm
- Programming Language:
- Backend/Renderer: Skia, SW
Product Impact
No response