Fixed object details scroll behaviour
This commit is contained in:
parent
34ec42fc89
commit
ea6ed3407a
|
@ -37,11 +37,11 @@ class ObjectDetails():
|
||||||
self.ids = self.screen.ids
|
self.ids = self.screen.ids
|
||||||
self.app.root.ids.screen_manager.add_widget(self.screen)
|
self.app.root.ids.screen_manager.add_widget(self.screen)
|
||||||
|
|
||||||
self.screen.ids.object_details_scrollview.effect_cls = ScrollEffect
|
self.screen.ids.object_details_container.effect_cls = ScrollEffect
|
||||||
self.telemetry_list = RVDetails()
|
self.telemetry_list = RVDetails()
|
||||||
self.telemetry_list.delegate = self
|
self.telemetry_list.delegate = self
|
||||||
self.telemetry_list.app = self.app
|
self.telemetry_list.app = self.app
|
||||||
self.screen.ids.object_details_scrollview.add_widget(self.telemetry_list)
|
self.screen.ids.object_details_container.add_widget(self.telemetry_list)
|
||||||
|
|
||||||
def close_action(self, sender=None):
|
def close_action(self, sender=None):
|
||||||
if self.from_conv:
|
if self.from_conv:
|
||||||
|
@ -92,7 +92,7 @@ class ObjectDetails():
|
||||||
Clock.schedule_once(job, 0.01)
|
Clock.schedule_once(job, 0.01)
|
||||||
self.telemetry_list.update_source(None)
|
self.telemetry_list.update_source(None)
|
||||||
|
|
||||||
self.screen.ids.object_details_scrollview.effect_cls = ScrollEffect
|
self.telemetry_list.effect_cls = ScrollEffect
|
||||||
|
|
||||||
def reload(self):
|
def reload(self):
|
||||||
self.clear_widget()
|
self.clear_widget()
|
||||||
|
@ -315,6 +315,8 @@ layou_object_details = """
|
||||||
|
|
||||||
<RVDetails>:
|
<RVDetails>:
|
||||||
viewclass: "ODView"
|
viewclass: "ODView"
|
||||||
|
effect_cls: "ScrollEffect"
|
||||||
|
|
||||||
RecycleBoxLayout:
|
RecycleBoxLayout:
|
||||||
default_size: None, dp(50)
|
default_size: None, dp(50)
|
||||||
default_size_hint: 1, None
|
default_size_hint: 1, None
|
||||||
|
@ -350,7 +352,7 @@ MDScreen:
|
||||||
|
|
||||||
MDIconButton:
|
MDIconButton:
|
||||||
id: object_appearance
|
id: object_appearance
|
||||||
icon: "map-marker-star-outline"
|
icon: "account-question"
|
||||||
icon_color: [0,0,0,1]
|
icon_color: [0,0,0,1]
|
||||||
md_bg_color: [1,1,1,1]
|
md_bg_color: [1,1,1,1]
|
||||||
theme_icon_color: "Custom"
|
theme_icon_color: "Custom"
|
||||||
|
@ -392,8 +394,8 @@ MDScreen:
|
||||||
on_release: root.delegate.copy_coordinates(self)
|
on_release: root.delegate.copy_coordinates(self)
|
||||||
disabled: False
|
disabled: False
|
||||||
|
|
||||||
ScrollView:
|
MDBoxLayout:
|
||||||
id: object_details_scrollview
|
orientation: "vertical"
|
||||||
effect_cls: "ScrollEffect"
|
id: object_details_container
|
||||||
|
|
||||||
"""
|
"""
|
Loading…
Reference in New Issue