File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,14 @@ public void Load(SignalConversation conversation)
119
119
InputTextBox . IsEnabled = false ;
120
120
DisposeCurrentThread ( ) ;
121
121
UpdateHeader ( conversation ) ;
122
- ConversationItemsControl . ItemsSource = new List < object > ( ) ; /* hack to avoid glitches */
122
+
123
+ /*
124
+ * When selecting a small (~650 messages) conversation after a bigger (~1800 messages) one,
125
+ * ScrollToBottom would scroll so far south that the entire screen was white. Seems like the
126
+ * scrollbar is not properly notified that the collection changed. I tried things like throwing
127
+ * CollectionChanged (reset) event, but to no avail. This hack works, though.
128
+ */
129
+ ConversationItemsControl . ItemsSource = new List < object > ( ) ;
123
130
UpdateLayout ( ) ;
124
131
Collection = new VirtualizedCollection ( conversation ) ;
125
132
ConversationItemsControl . ItemsSource = Collection ;
You can’t perform that action at this time.
0 commit comments