Fix a positioning bug
This commit is contained in:
parent
b5f9066172
commit
7668a19490
1 changed files with 2 additions and 4 deletions
|
|
@ -16,8 +16,7 @@ pub enum PaneId {
|
||||||
Plugin(u32), // FIXME: Drop the trait object, make this a wrapper for the struct?
|
Plugin(u32), // FIXME: Drop the trait object, make this a wrapper for the struct?
|
||||||
BuiltIn(u32),
|
BuiltIn(u32),
|
||||||
}
|
}
|
||||||
|
#[derive(Clone, Copy, Debug, Default)]
|
||||||
#[derive(Clone, Copy, Debug)]
|
|
||||||
pub struct PositionAndSize {
|
pub struct PositionAndSize {
|
||||||
pub x: usize,
|
pub x: usize,
|
||||||
pub y: usize,
|
pub y: usize,
|
||||||
|
|
@ -30,8 +29,7 @@ impl PositionAndSize {
|
||||||
PositionAndSize {
|
PositionAndSize {
|
||||||
columns: winsize.ws_col as usize,
|
columns: winsize.ws_col as usize,
|
||||||
rows: winsize.ws_row as usize,
|
rows: winsize.ws_row as usize,
|
||||||
x: winsize.ws_xpixel as usize,
|
..Default::default()
|
||||||
y: winsize.ws_ypixel as usize,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue