From dec98f26f8eab3edf97d6628493747b5a1dc5df2 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 31 Oct 2023 17:46:57 +0100 Subject: [PATCH] Cleanup --- sbapp/ui/telemetry.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sbapp/ui/telemetry.py b/sbapp/ui/telemetry.py index d1cdfc0..ce3094c 100644 --- a/sbapp/ui/telemetry.py +++ b/sbapp/ui/telemetry.py @@ -976,6 +976,7 @@ MDScreen: orientation: "vertical" MDTopAppBar: + id: top_bar title: "Sensors" anchor_title: "left" elevation: 0 @@ -986,25 +987,31 @@ MDScreen: ['close', lambda x: root.app.close_sub_telemetry_action(self)], ] - ScrollView: + MDScrollView: id: sensors_scrollview + size_hint_x: 1 + size_hint_y: None + size: [root.width, root.height-root.ids.top_bar.height] + do_scroll_x: False + do_scroll_y: True - MDBoxLayout: - orientation: "vertical" + MDGridLayout: + cols: 1 + padding: [dp(28), dp(28), dp(28), dp(28)] size_hint_y: None height: self.minimum_height - padding: [dp(28), dp(48), dp(28), dp(16)] MDLabel: text: "Sensor Types" font_style: "H6" + size_hint_y: None + height: self.texture_size[1] MDLabel: id: telemetry_info3 markup: True text: "" size_hint_y: None - text_size: self.width, None height: self.texture_size[1] MDBoxLayout: @@ -1241,12 +1248,6 @@ MDScreen: text: "" font_size: dp(24) - MDLabel: - markup: True - text: "\\n" - size_hint_y: None - text_size: self.width, None - height: self.texture_size[1] """ layout_icons_screen = """