Custom layout cannot be updated dynamically

in gtk4

I implemented a layouter, but I found that it doesn’t update when the window size changes. This causes the new area to be blank. It will be updated when mouse movement triggers measure/allocate again.

why is that? How to deal with it?

Using the inspector I found that the size of the control using the custom layouter was updated, it just wasn’t triggering a reallocation of the layouter.

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