Resize child widgets on Window resize

Is it possible to have child widgets resize in both directions when the window is resized, in particular treeviews

My app has an architecture of
Window->grid->notebook
Each tab then contains a grid where the treeviews live

By setting expand on each column and cellrenderer, the columns expand when the window is resized

However the height does not change. Is this something to do with text-size?

Is this possible?

This is what I have tried so far
$treeview->set(‘vexpand’,1)
Does nothing except the view expands without any more rows (big blank area)
connecting to configure event
and
my $stylec=$notebook->get_style_context;
my $screen=$stylec->get_screen;
$stylec->reset_widgets($screen);
get_screen->reset_widgets;
No effect except loads of errors

$window->set_reallocate_redraws(1);
No effect

my @size=$window->get_size;
my $ratiow=$size[0]/1200;
my $ratioh=$size[1]/600;
$factor=$factorp*$ratiow;
$factorh=$factorhp*$ratioh;
print '147 ',$factorh,"\n";

foreach my $w ($notebook->get_nth_page(0)->get_children){
if ($w=~/TreeView/){
my @cells=$w->get_column(0)->get_cells;
$cells[0]->set(‘height’,2*$factorh);
}
}

$factor and $factorh are adjustments used throughout app

If I open a new tab the cells are resized

Any suggestions

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.