Skip to content
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

GUI resizes upon new game #1

Open
Namdrib opened this issue Jul 18, 2018 · 1 comment
Open

GUI resizes upon new game #1

Namdrib opened this issue Jul 18, 2018 · 1 comment
Assignees
Labels
bug Something isn't working gui Related to the GUI

Comments

@Namdrib
Copy link
Owner

Namdrib commented Jul 18, 2018

Looks like the grid alignment changes and each CellIcon is 1 pixel shorter both horizontally and vertically.
First game is fine, but every subsequent game is slightly smaller than the first.

Possibly something to do with the way Minesweeper.resetGame() rebuilding things

@Namdrib Namdrib self-assigned this Jul 18, 2018
@Namdrib Namdrib added bug Something isn't working gui Related to the GUI labels Jul 18, 2018
Namdrib pushed a commit that referenced this issue Jul 19, 2018
Commit before removing Board abstraction.
@Namdrib
Copy link
Owner Author

Namdrib commented Jul 23, 2018

Got a bit of a hacky fix right now by immediately calling Minesweeper.resetGame() after setting up to force a resize to the correct size.

However, need to find a way to not have the incorrect size in the first place. And by extension, find out what's causing the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gui Related to the GUI
Projects
None yet
Development

No branches or pull requests

1 participant