diff options
-rw-r--r-- | widget/src/text_editor.rs | 2 | ||||
-rw-r--r-- | widget/src/text_input.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 018ffd9c..c7d62d92 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -538,7 +538,7 @@ where renderer.fill_quad( renderer::Quad { bounds: Rectangle { - x: position.x, + x: position.x.floor(), y: position.y, width: 1.0, height: self diff --git a/widget/src/text_input.rs b/widget/src/text_input.rs index 449524fc..9ed8480a 100644 --- a/widget/src/text_input.rs +++ b/widget/src/text_input.rs @@ -390,7 +390,8 @@ where Some(( renderer::Quad { bounds: Rectangle { - x: text_bounds.x + text_value_width, + x: (text_bounds.x + text_value_width) + .floor(), y: text_bounds.y, width: 1.0, height: text_bounds.height, |