Round region dimensions of panes to avoid overlaps
This commit is contained in:
parent
df6e3f8da9
commit
f09b4bd4f4
1 changed files with 2 additions and 2 deletions
|
|
@ -552,7 +552,7 @@ impl Split {
|
|||
) -> (Rectangle, Rectangle) {
|
||||
match self {
|
||||
Split::Horizontal => {
|
||||
let width_left = rectangle.width * ratio;
|
||||
let width_left = (rectangle.width * ratio).round();
|
||||
let width_right = rectangle.width - width_left;
|
||||
|
||||
(
|
||||
|
|
@ -568,7 +568,7 @@ impl Split {
|
|||
)
|
||||
}
|
||||
Split::Vertical => {
|
||||
let height_top = rectangle.height * ratio;
|
||||
let height_top = (rectangle.height * ratio).round();
|
||||
let height_bottom = rectangle.height - height_top;
|
||||
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue