# HG changeset patch # User Goffi # Date 1279290172 -28800 # Node ID 2f8c86488b0550f83ad114f85ed7457289b9622a # Parent 227394eb080ca674e74e367849b26b8a52c0a093 wix: scrolling is not reseted anymore when clicking on a group on contact list diff -r 227394eb080c -r 2f8c86488b05 frontends/wix/contact_list.py --- a/frontends/wix/contact_list.py Fri Jul 16 20:25:06 2010 +0800 +++ b/frontends/wix/contact_list.py Fri Jul 16 22:22:52 2010 +0800 @@ -147,6 +147,7 @@ """Called when a contact is selected.""" data = self.getSelection() if data == None: #we have a group + first_visible = self.GetVisibleBegin() group = self.GetClientData(self.GetSelection()) erased = self.__eraseGroup(group) if not erased: #the group was already erased, we can add again the contacts @@ -156,6 +157,7 @@ for contact in contacts: self.Insert(self.__presentItem(contact), id_insert, contact) self.SetSelection(wx.NOT_FOUND) + self.ScrollToLine(first_visible) event.Skip(False) else: event.Skip()