|
From: Vince D. <vin...@gm...> - 2006-03-27 12:57:33
|
Here's a similar example to the TkAqua one, but where height is treated wei=
rdly:
toplevel .tt -bg red
button .tt.b -text "Cancel" -padx 0 -pady 0 -bd 0 -highlightthickness 0
ttk::button .tt.b2 -text Cancel -padding {0 0 0 0}
place .tt.b -x 50 -y 20 -width 63 -height 25
place .tt.b2 -x 50 -y 50 -width 63 -height 25
# all looks fine, with text vertically centered in the button,
# but, now reduce the height...
place .tt.b -x 50 -y 20 -width 63 -height 15
place .tt.b2 -x 50 -y 50 -width 63 -height 15
-
and the tile button no longer vertically centers its text. The text
has slipped towards the bottom of the widget even though there are a
few spare pixels above. Again this is an artificially extreme example,
but I do have an application where this occurs.
Vince.
|