Fix gtk.label + wrapping in the dataform widget.(problem - http://img36.imageshack.us/img36/2782/tmpbhyeyn.png)

This commit is contained in:
Denis Fomin 2011-10-07 22:22:25 +03:00
parent 1c20f5c5f4
commit c8b505a129
1 changed files with 1 additions and 0 deletions

View File

@ -1081,6 +1081,7 @@ def __label_size_allocate(widget, allocation):
return
# set wrap width to the pango.Layout of the labels ###
widget.set_alignment(0.0, 0.0)
layout.set_width (allocation.width * pango.SCALE)
lh = layout.get_size()[1]