aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-01-28 18:24:03 +0100
committerGitHub <noreply@github.com>2021-01-28 18:24:03 +0100
commit31b415e391e41728bd489ef7972dd0d227c1a887 (patch)
tree969be11fedcecefc6685dc2b08e6b1a31c8530cd
parentNeed to take into account the 2 chars of ', ' that also may be added! (diff)
parentfeat(init): set max height on startup (diff)
downloadsl0ppij-31b415e391e41728bd489ef7972dd0d227c1a887.tar.gz
sl0ppij-31b415e391e41728bd489ef7972dd0d227c1a887.tar.xz
sl0ppij-31b415e391e41728bd489ef7972dd0d227c1a887.zip
Merge pull request #1 from mosaic-org/max-height
feat(init): set max height on startup
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 590bb3a9..0b0542fc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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) {