Gtk 4.10.4
GIF
layout
MyFlowBox GTK_ORIENTATION_HORIZONTAL
- MyChild ::wfh GTK_ORIENTATION_VERTICAL
I need to record the sum of the heights of the children when flowbox distributes the width to a fixed number of children in an even manner
So when I measure the child’s height, I pass the child’s width value as for_size to measure
But measure always returns the same value. Because the result is cached.
During the investigation, I found the key code
I currently don’t understand what this code means
if (cur->lower_for_size <= for_size &&
cur->upper_for_size >= for_size)
I don’t know how to fix it.
I tried calling gtk_widget_queue_allocate before the measure child, but it didn’t work