Allow for undefined buffer width and/or height, fixes #70

This commit is contained in:
Jeremy Soller 2024-06-12 09:04:04 -06:00
parent cd1cd0a337
commit 93a7df859a
15 changed files with 99 additions and 72 deletions

View file

@ -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),
)
});