删除服务器配置后滚动问题

This commit is contained in:
秦宇航
2017-04-15 22:40:25 +08:00
parent 56e00417af
commit acc7e0361a
@@ -128,8 +128,8 @@ class PreferencesWindowController: NSWindowController
}
profilesTableView.endUpdates()
}
self.profilesTableView.scrollRowToVisible(index)
self.profilesTableView.selectRowIndexes(IndexSet(integer: index), byExtendingSelection: false)
self.profilesTableView.scrollRowToVisible(index-1)
self.profilesTableView.selectRowIndexes(IndexSet(integer: index-1), byExtendingSelection: false)
updateProfileBoxVisible()
}