Closed andre2007 closed 2 years ago
hmm lemme get back to you on this.
i see the bug it is windows specific which means i probably just forgot to initialize a variable on the native window handle or something. and actually as you click through the problem eventually goes away which definitely smells like i forgot to initialize something then it got set later.
I went back and read the docs and saw Windows rounds off and then I was thinking maybe I just need to set these values in opposite direction.... it seems to actually work, look at that commit diff lol.
Took forever to find tho.
But I did notice the original thing doesn't resize if you change the window size then unhide something. I'm gonna see if I can fix that too. I think when I hide or unhide I need to queue up a size recalculation.
Thanks a lot Adam
ok i think i fixed that too. possibility of regressions though i touched a particularly ugly part of the code....
and that ugly part of the code needs more work. tempted to do a breaking change there too but wanna avoid that since arsd 11 isn't scheduled until next summer. (but it is an undocumented function so odds are nobody would notice.... just it is also public.)
passed my simple tests i can do with baby on me tho
so pushed up, if you use it let me know either regressions or lack thereof
Thanks a lot, it is working fine now.
I am adding dynamically buttons to a ScrollableContainerWidget. Sometimes the vertical scrollbar is correct, sometimes it looks like the user can scroll vertically although there is nothing to scroll.
Here is an example:
Execute it with
dub sample.d
and click on buttonclick here
.