Merge pull request #1 from mosaic-org/max-height

feat(init): set max height on startup
This commit is contained in:
Aram Drevekenin 2021-01-28 18:24:03 +01:00 committed by GitHub
commit 31b415e391
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ register_tile!(State);
impl MosaicTile for State { impl MosaicTile for State {
fn init(&mut self) { fn init(&mut self) {
set_selectable(false); set_selectable(false);
set_max_height(1);
} }
fn draw(&mut self, _rows: usize, cols: usize) { fn draw(&mut self, _rows: usize, cols: usize) {