On Tue, Feb 3, 2009 at 3:52 PM, Kent Tenney <[email protected]> wrote:
> > I don't like nodes jumping around when they are expanded or contracted. We may have reached the limits of what can be done. Perhaps I am wrong, but I think that Leo *must* scroll when redrawing. Otherwise scrolling can get quite far from optimal. In particular, selecting an item can cause Qt to force the otherwise-invisible item to appear. So the only other fiddle I can see, disabling scrolling in redraw_after_expand, will not actually do have any effect, because full_redraw will do scrolling anyway. I just looked to see if qt had a policy for showing the presently-selected item. It doesn't. Instead, there is a hint parameter to w.scrollToItem, and that the qt gui already uses consistently. In short, while I would prefer that we not scroll on contract, I'm not sure it is possible. But wait, there is one more thing to try. I'll add an optional 'contract' keyword arg to full_redraw, which will suppress the otherwise always-enabled scrolling. It's my last shot... Edward --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
