From: SourceForge.net <no...@so...> - 2012-07-31 18:11:56
|
Bugs item #3552404, was opened at 2012-07-30 22:16 Message generated for change (Comment added) made by jenglish You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3552404&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: 88. Themed Tk Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Joe English (jenglish) Assigned to: Joe English (jenglish) Summary: ttk::entry - overzealous clipping Initial Comment: Symptom (observed on Tk trunk under X11) pack [ttk::entry .e -width 10] -expand true -fill x Type in .e until it needs to scroll. Rightmost characters are not displayed, neither is insert cursor. Selection rectangle however is displayed. Suspected cause of problem: dkf's latest change. ---------------------------------------------------------------------- >Comment By: Joe English (jenglish) Date: 2012-07-31 11:11 Message: Implementation on core-8-5-branch uses textarea rectangle and does not exhibit the problem. Dunno what happened between core-8-5-branch and trunk. Resynced trunk <URL: http://core.tcl.tk/tk/info/2de6634d57 > ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2012-07-31 03:32 Message: I knew that something wasn't quite right, but didn't know enough about the internals of ttk::entry to fix it. (I believe it can at least do the clipping now, whereas before it was completely wrong.) Assigning back to you as you understand what's wrong better than I do. :-) (The one thing to watch out for is that the way you set the clipping is somewhat weird; this is because the new X11 font system can't take the clipping from the GC...) ---------------------------------------------------------------------- Comment By: Joe English (jenglish) Date: 2012-07-30 22:30 Message: Confirmed: computation of the clip region in generic/ttk/ttkEntry.c ain't right. Should probably be the textarea rectangle. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3552404&group_id=12997 |