examples
examples copied to clipboard
refactor xkcd layout
refactor xkcd layout so buttons are always reachable and image doesn't run off screen.
If the image is large, I found that image forces the bottom buttons to be off screen and not reachable. The problem is worse on a Notebook computer.
This is a good idea, thanks. Unfortunately as-is this now collapses the image to a tiny size (the min for a ScrollContainer) perhaps it could be big enough to display some of the smaller images by default? Perhaps using a minsize on the scroller or resizing the window would help?
I went with picking a decent size default xkcd window size and recenter. I tried several ways to resize the image container, but that would not cause the window itself to resize. I also considered resizing the window based on the the image size, but that seemed awkward and would probably introduce a number of edge cases.
Do you want to pick this up with a smaller window size?