-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor xkcd layout #20
base: develop
Are you sure you want to change the base?
Conversation
This is a good idea, thanks. |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it went a little too far the other way ;)
Good catch on the labels though
form, buttons, x.image)) | ||
layout.NewBorderLayout(controlsContainer, nil, nil, nil), | ||
controlsContainer, imageContainer)) | ||
w.Resize(fyne.NewSize(1000, 800)) // will limit to screensize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this is a sensible start size? it seems very large?
I agree it will (depending on OS) likely limit to screen size, but it doesn't seem like the kind of window that wants to be so big.
Also I don't think we should be requesting center on screen without good reason.
Do you want to pick this up with a smaller window size? |
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.