Implement Cursor::Selection calculation in Editor::cursor
This commit is contained in:
parent
a28ed825c1
commit
40eb648f1e
2 changed files with 120 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue