[Tcl-bugs] [Tk] (bll) tkt (New): right adjusted text doesn' t wrap properly when the window size is reduced

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Tcl-bugs] [Tk] (bll) tkt (New): right adjusted text doesn' t wrap properly when the window size is reduced

akupries
Automated mail by fx, on behalf of [hidden email]

Ticket Change [ee2028b288180cda3c11ecfd26c74451136d72fb]
  [right adjusted text doesn't wrap properly when the window size is reduced]
  By      bll
  For     Tk
  On      2017-07-05T02:56:05.666
  Details https://core.tcl.tk/tk/tinfo?name=ee2028b288180cda3c11ecfd26c74451136d72fb
  Ticket  https://core.tcl.tk/tk/tktview/0421e91b58be27c1abe5cf7491e19984ddf7e380

Changed Fields
  assignee:   nobody
  closer:     nobody
  comment:    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\ abcdef\ "  .t insert end "center\
              abcdef\ "  .t insert end "right\ abcdef\ "  .t insert end
              "1234567890123456789012345678901234567890\ "  .t tag add x 1.0 2.0  .t
              tag add y 2.0 3.0  .t tag add z 3.0 4.0
  foundin:    revised_text
  is_private: 0
  login:      bll
  priority:   5 Medium
  resolution: None
  severity:   Minor
  status:     Open
  submitter:  bll
  subsystem:  18. [text]
  title:      right adjusted text doesn't wrap properly when the window size is
              reduced
  type:       Bug

------------------------------------------------------------
See Tcl/Tk development @ http://core.tcl.tk/
------------------------------------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Tcl-Bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tcl-bugs