Fix initial column size measurement

This commit is contained in:
René Stadler 2007-11-22 13:35:39 +02:00 committed by Stefan Sauer
parent abd90f42be
commit b5e04f3d80

View file

@ -388,7 +388,8 @@ class TextColumn (SizedColumn):
max_width = 0
for value in values:
cell.props.text = format (value)
max_width = max (max_width, cell.get_size (view, None)[2])
rect, x, y, w, h = self.view_column.cell_get_size ()
max_width = max (max_width, w)
return max_width