Allow for undefined buffer width and/or height, fixes #70
This commit is contained in:
parent
cd1cd0a337
commit
93a7df859a
15 changed files with 99 additions and 72 deletions
|
|
@ -110,8 +110,8 @@ fn main() {
|
|||
|
||||
editor.with_buffer_mut(|buffer| {
|
||||
buffer.set_size(
|
||||
width as f32 - scrollbar_width * display_scale,
|
||||
height as f32,
|
||||
Some(width as f32 - scrollbar_width * display_scale),
|
||||
Some(height as f32),
|
||||
)
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue