p9c / pod-archive

ParallelCoin's Omnibus Depositorie
https://parallelcoin.info
The Unlicense
9 stars 5 forks source link

Find and fix the cause of strange geometry problems from lists with axis expanding child widgets #120

Closed l0k18 closed 3 years ago

l0k18 commented 3 years ago

When a scrolling list is created with a Flexed section of a Flex in it somewhere, the grabber scrolls downwards below the bottom. I think the Flexed container gives numbers to the list that don't make sense (like 'infinity'). Probably not really a bug, as it's easy to avoid, but perhaps to change the Flexed widget to return max. Not sure. At this point just making this note to remember to look at it.

l0k18 commented 3 years ago

this may not be so important since it can be worked around. The most recent recurrence of the 'pull down' bug in the scrollbar/list implementation was positively connected to flowed text widgets, and the behavior seems to directly match the result of putting axis flexed boxes into a list, as in, vertical list, with elements with vertical expansion break the list when it gets to displaying these widgets, confusing the widget and messing with the whole complex of dimensions calculations.

It seems more like a job for a linter, it is just that the text widget should not become a flexed box, at all, it should remain rigid at its dimensions. So probably this is more than anything, a bug in the text implementation, as there isn't any (yet) introspection in the Gio library and its' not possible from the point of the caller of a widget to know if it's got an axis-expanding widget inside it, or is one itself.

l0k18 commented 3 years ago

just don't use expanding layouts with same axis lists (no vertical expand on vertical list, and vice versa)