mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Fix initial column size measurement
This commit is contained in:
parent
abd90f42be
commit
b5e04f3d80
1 changed files with 2 additions and 1 deletions
|
@ -388,7 +388,8 @@ class TextColumn (SizedColumn):
|
||||||
max_width = 0
|
max_width = 0
|
||||||
for value in values:
|
for value in values:
|
||||||
cell.props.text = format (value)
|
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
|
return max_width
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue