Implement Cursor::Selection calculation in Editor::cursor

This commit is contained in:
Héctor Ramón Jiménez 2023-09-13 15:00:33 +02:00
parent a28ed825c1
commit 40eb648f1e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 120 additions and 4 deletions

View file

@ -288,7 +288,11 @@ where
for range in ranges {
renderer.fill_quad(
renderer::Quad {
bounds: range + Vector::new(bounds.x, bounds.y),
bounds: range
+ Vector::new(
bounds.x + self.padding.left,
bounds.y + self.padding.top,
),
border_radius: 0.0.into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,