Skip to content

Commit

Permalink
Merge pull request #1 from mosaic-org/max-height
Browse files Browse the repository at this point in the history
feat(init): set max height on startup
  • Loading branch information
imsnif authored Jan 28, 2021
2 parents 50c3038 + 7bb2f82 commit 31b415e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ register_tile!(State);
impl MosaicTile for State {
fn init(&mut self) {
set_selectable(false);
set_max_height(1);
}

fn draw(&mut self, _rows: usize, cols: usize) {
Expand Down

0 comments on commit 31b415e

Please sign in to comment.