On Mon, Feb 23, 2009 at 7:12 PM, Terry Brown <[email protected]> wrote:

> I seem some improvement, still suboptimal if I click-expand

I tried an implementation that always sets the horizontal scrollbar at
zero. Maybe you'll want to try it out if it's better:

+++ leo/plugins/qtGui.py        2009-02-23 20:07:51 +0000
@@ -3729,7 +3729,7 @@

         w.scrollToItem(item,w.PositionAtCenter)

-        self.setHScroll(hPos)
+        self.setHScroll(0)
     #...@-node:ekr.20090201080444.12:scrollToItem
     #...@+node:ekr.20090124174652.107:setCurrentItemHelper
     def setCurrentItemHelper(self,item):
@@ -3760,6 +3760,7 @@
     def setHScroll (self,hPos):
         w = self.treeWidget
         hScroll = w.horizontalScrollBar()
+        hScroll.setValue(hPos)


-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to