From: SourceForge.net <no...@so...> - 2010-01-06 23:10:59
|
Bugs item #2677890, was opened at 2009-03-10 08:27 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2677890&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 18. [text] Group: obsolete: 8.5.7 Status: Open Resolution: None Priority: 8 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Jeffrey Hobbs (hobbs) Summary: Text widgets multi-scrolling problem Initial Comment: Hi, When running the attached code (tts.tcl), at first both text widget scroll in sync. Now click the Test button, which will re-create the text and scrollbar widgets 100 times. When complete, try scrolling again, the text widgets are no longer in sync. Now try scrolling all the way down, notice how sometimes the slider's size changes while scrolling. When at the bottom, scrolling is in sync again. Kind regards, Jos. ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2010-01-06 23:10 Message: Something is making things pitch out of the iteration early; I suspect that the problem is that the insert is moving the lastMetricUpdateLine backward. The bit on line 2907 (HEAD of tkTextDisp.c) seems fishy. Some of the calcs in TextInvalidateLineMetrics seem fishy too. ---------------------------------------------------------------------- Comment By: Decoster Jos (decosterjos) Date: 2009-05-08 14:47 Message: This is caused by a problem in AsyncUpdateLineMetrics. The timer at the end of the function, used to continue the update, doesn't seem to expire, or the AsyncUpdateLineMetrics isn't called again after it expires. Removing the timer and replacing it by: AsyncUpdateLineMetrics(textPtr); solves the problem. ---------------------------------------------------------------------- Comment By: Decoster Jos (decosterjos) Date: 2009-05-08 14:14 Message: Smaller example, without multi scrolling triggering same problem: package require Tk proc create { } { pack\ [text .t1 -width 10 -yscrollcommand {.sy set}]\ [ttk::scrollbar .sy -orient vertical -command {.t1 yview}]\ -side left -fill both set txt "" for {set i 0} {$i < 100} {incr i} { lappend txt "$i" [list pc $i] "\n" "" } eval .t1 insert end $txt } proc mod { {idx 6.0} } { .t1 replace $idx $idx+1c "*" } create update mod ---------------------------------------------------------------------- Comment By: Decoster Jos (decosterjos) Date: 2009-03-10 09:19 Message: Bug appears in version >= 8.5, also in head. ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2009-03-10 09:16 Message: Which version of Tk? ---------------------------------------------------------------------- Comment By: Decoster Jos (decosterjos) Date: 2009-03-10 08:28 Message: Forgot to login before submitting. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2677890&group_id=12997 |