[text] xview and right/center justify in
Closed / Invalid629160ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-10-26 17:53:48
There seems to be an interaction between right/center
justification and the text widgets xview command.
To wit, the output of running the following script is:
Xview left: 0 0.25641
Xview right: 0 1
My actual goal is to shrink the text widget to
fit the contents, a feature [text] is sorely missing.
Reproducable script:
#####################################
pack [text .t -width 10 -height 2 -wrap none]
.t tag conf righty -justify left
.t insert end {Here is some random text longer than ten
chars} righty
puts "Xview left: [.t xview]"
.t tag conf righty -justify right
puts "Xview right: [.t xview]"
dkf Closed ticket [629160ffff].
[History diff]2002-11-15 22:39:43
dkfplain2002-11-15 22:39:44
Logged In: YES user_id=79902 Please resubmit to tktoolkit project.
Log in (anonymous is fine) to add a comment.