Mercurial > libervia-backend
changeset 138:2f8c86488b05
wix: scrolling is not reseted anymore when clicking on a group on contact list
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Jul 2010 22:22:52 +0800 |
parents | 227394eb080c |
children | e7b8871e9f52 |
files | frontends/wix/contact_list.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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()