mirror of
https://github.com/liberatedsystems/Sideband_CE.git
synced 2024-09-03 04:13:27 +02:00
Fixed conversation scroll sometimes being incorrect on loading
This commit is contained in:
parent
018b958ded
commit
1f1cb5ca17
@ -751,7 +751,7 @@ class SidebandApp(MDApp):
|
|||||||
list_widget = self.messages_view.get_widget()
|
list_widget = self.messages_view.get_widget()
|
||||||
|
|
||||||
self.root.ids.messages_scrollview.add_widget(list_widget)
|
self.root.ids.messages_scrollview.add_widget(list_widget)
|
||||||
self.root.ids.messages_scrollview.scroll_y = 0.001
|
self.root.ids.messages_scrollview.scroll_y = 0.0
|
||||||
|
|
||||||
self.root.ids.messages_toolbar.title = self.sideband.peer_display_name(context_dest)
|
self.root.ids.messages_toolbar.title = self.sideband.peer_display_name(context_dest)
|
||||||
self.root.ids.messages_scrollview.active_conversation = context_dest
|
self.root.ids.messages_scrollview.active_conversation = context_dest
|
||||||
@ -769,6 +769,10 @@ class SidebandApp(MDApp):
|
|||||||
self.sideband.read_conversation(context_dest)
|
self.sideband.read_conversation(context_dest)
|
||||||
self.sideband.setstate("app.flags.unread_conversations", True)
|
self.sideband.setstate("app.flags.unread_conversations", True)
|
||||||
|
|
||||||
|
def scb(dt):
|
||||||
|
self.root.ids.messages_scrollview.scroll_y = 0.0
|
||||||
|
Clock.schedule_once(scb, 0.33)
|
||||||
|
|
||||||
def close_messages_action(self, sender=None):
|
def close_messages_action(self, sender=None):
|
||||||
self.open_conversations(direction="right")
|
self.open_conversations(direction="right")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user