Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: 781a87b8d3282949db56636e8ac61f9ed94b3464
Ticket: fc24165111709d5add5fb7532e30bb18233c0404
Mac OS X: text bbox does not return {} for off-screen characters
User & Date: bll 2017-06-23 16:48:28
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    This issue exists in both in 8.6.6 and revised_text.
    The negative numbers should not be returned either.
    
    package require Tk
    pack [text .t -width 20 -height 10 -wrap char]
    .t insert 1.0 "abcd\nefg hijkl mnop qrstuv wxyz"
    .t tag configure y -wrap none
    update
    .t tag add y 1.end 2.2
    .t bbox 2.20  ; # should return {}
    
    % .t bbox 2.2 ; # g
    18 18 7 14
    % .t bbox 2.3 ; # { }
    25 18 -7 14
    % .t bbox 2.18 ; # t
    130 19 -7 15
    % .t bbox 2.19 ; # u
    137 19 -7 15
    % .t bbox 2.20 ; # v  off-screen
    144 19 -7 15
    % .t bbox 2.21 ; # { } off-screen
    151 19 -7 15
    % .t bbox 2.22 ; # w
    %
    
  5. foundin changed to: "8.6.6"
  6. is_private changed to: "0"
  7. login: "bll"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "bll"
  13. subsystem changed to: "18. [text]"
  14. title changed to:
    Mac OS X: text bbox does not return {} for off-screen characters
    
  15. type changed to: "Bug"