Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: ee2028b288180cda3c11ecfd26c74451136d72fb
Ticket: 0421e91b58be27c1abe5cf7491e19984ddf7e380
right adjusted text doesn't wrap properly when the window size is reduced
User & Date: bll 2017-07-05 02:56:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Using the following script, reduce the window size.
    The right adjusted text simply disappears from the display.
    
    (Could both centered and right adjusted wrapping algorithms (for text) be much simpler?)
    
    package require Tk
    
    set fixedFont {"Courier New" -12}
    
    frame .f -width 100 -height 20
    pack .f -side left
    text .t -font $fixedFont -width 40 -height 10
    pack .t -expand 1 -fill both
    
    .t configure -wrap char -highlightthickness 0 -borderwidth 0 -padx 0 -pady 0
    
    .t delete 1.0 end
    .t configure -width 40 -padx 0 -highlightthickness 0 -border 0
    update
    .t tag configure x -tabs [list 280]
    .t tag configure y -tabs [list 280 center]
    .t tag configure z -tabs [list 280 right]
    .t insert 1.0 "left\tabcdef\n"
    .t insert end "center\tabcdef\n"
    .t insert end "right\tabcdef\n"
    .t insert end "1234567890123456789012345678901234567890\n"
        .t tag add x 1.0 2.0
        .t tag add y 2.0 3.0
        .t tag add z 3.0 4.0
    
  5. foundin changed to: "revised_text"
  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:
    right adjusted text doesn't wrap properly when the window size is reduced
    
  15. type changed to: "Bug"