aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/habitview.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/views/habitview.rs b/src/views/habitview.rs
index 3ae0c90..ddeb456 100644
--- a/src/views/habitview.rs
+++ b/src/views/habitview.rs
@@ -41,6 +41,9 @@ impl HabitView {
41 pub fn get_title(&self) -> String { 41 pub fn get_title(&self) -> String {
42 return self.habit.get_name().to_owned(); 42 return self.habit.get_name().to_owned();
43 } 43 }
44 pub fn get_size(&self) -> Vec2 {
45 (self.view_width, self.view_height).into()
46 }
44} 47}
45 48
46impl View for HabitView { 49impl View for HabitView {