examples icon indicating copy to clipboard operation
examples copied to clipboard

refactor xkcd layout

Open alpiepho opened this issue 4 years ago • 3 comments

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.

alpiepho avatar Feb 12 '20 13:02 alpiepho

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?

andydotxyz avatar Feb 13 '20 13:02 andydotxyz

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.

alpiepho avatar Feb 14 '20 13:02 alpiepho

Do you want to pick this up with a smaller window size?

andydotxyz avatar Jun 08 '20 14:06 andydotxyz