workbenchdev / demos

Demos of GNOME technologies - GTK, libadwaita, CSS, portals, ...
Creative Commons Zero v1.0 Universal
10 stars 16 forks source link

Wrap ListView and GridView in ScrolledWindow #120

Closed Rirusha closed 6 months ago

Rirusha commented 6 months ago

The demo did not work correctly: when creating more than 200 widgets and scrolling down, widgets are not dynamically created. Each Gtk.ListView or Gtk.GridView should be placed in Gtk.ScrolledWindow without intermediaries (Scrolling from Adw.StatusPage will not work)

Rirusha commented 6 months ago

Done. 🫡

Rirusha commented 6 months ago

I also wanted to ask, how welcome is changing the code of an existing demo? That is, I could add text output with "widget loaded/unloaded at position n" and add 500 instead 3 default widgets. One of the features of ListView/GridView is the display of a huge amount of content without hitting performance.

sonnyp commented 6 months ago

how welcome is changing the code of an existing demo?

if it's an improvement go for it

I could add text output with "widget loaded/unloaded at position n" and add 500 instead 3 default widgets. One of the features of ListView/GridView is the display of a huge amount of content without hitting performance.

That's an improvement :+1: