Skip to content

Commit

Permalink
Improve Split accuracy.
Browse files Browse the repository at this point in the history
  • Loading branch information
xStrom committed Mar 22, 2020
1 parent 3eafd81 commit ba7e279
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 103 deletions.
6 changes: 4 additions & 2 deletions druid/examples/split_demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn build_app() -> impl Widget<u32> {
Align::centered(Label::new("Bottom Split")),
)
.split_point(0.4)
.splitter_size(7.0),
.splitter_size(3.0),
)
.border(Color::WHITE, 1.0),
);
Expand All @@ -62,12 +62,14 @@ fn build_app() -> impl Widget<u32> {
Split::horizontal(
Split::horizontal(fixed_vertical, fixed_horizontal)
.split_point(0.33)
.splitter_size(5.0)
.splitter_size(3.0)
.min_splitter_area(3.0)
.draggable(true),
draggable_vertical,
)
.split_point(0.75)
.splitter_size(5.0)
.min_splitter_area(11.0)
.draggable(true),
)
.border(Color::WHITE, 1.0),
Expand Down
Loading

0 comments on commit ba7e279

Please sign in to comment.