TreeView header out of place after maximization if horizontal scroll previously exists
Steps to reproduce
- With a TreeView in a ScrolledWindow and the window not maximize, scroll horizontally the treeview.
- Maximize the window.
void activate (Gtk.Application app)
{
var window = new Gtk.ApplicationWindow(app);
var view = new Gtk.TreeView();
var cell = new Gtk.CellRendererText();
view.insert_column_with_attributes(-1, "Colmun 1", cell, "text", 0);
view.insert_column_with_attributes(-1, "Colmun 2", cell, "text", 1);
view.insert_column_with_attributes(-1, "Colmun 3", cell, "text", 2);
var list = new Gtk.ListStore(3, typeof(string), typeof(string), typeof(string));
view.set_model(list);
Gtk.TreeIter iter;
for(var i=0; i<10; i++)
{
list.append(out iter);
list.set(iter, 0, "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", 1, "Vivamus ultrices eu nisi vitae suscipit.", 2, "Donec aliquam egestas dolor ut sollicitudin.");
}
var scroll = new Gtk.ScrolledWindow();
scroll.set_child(view);
window.set_child(scroll);
window.present();
}
int main (string[] args)
{
var app = new Gtk.Application("org.test.app", ApplicationFlags.FLAGS_NONE);
app.activate.connect(() => {activate(app);});
return app.run (args);
}
Current behavior
Header TreeView out of place.
Version information
- GTK version: 4.6.1
- OS: Arch Linux