Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
How to keep a resizable canvas centered in scene?
Post Flair (click to view more posts with a particular flair)
Post Body

I'm making a minesweeper application, and I'm having trouble making my canvas (for the grid) stay centered in the window. I've made my canvas automatically resizable, so it takes up any available space if the window is resized while maintaining its aspect ratio (it can be either square or rectangular). I tried nesting a VBox inside an HBox but that didn't work. Any ideas? Seems like it should be a simple thing to implement...

Another idea I had was just keep a reference to the parent node's dimensions inside the canvas and change the draw logic based on that, but that seems too hacky.

Author
Account Strength
0%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,962
Link Karma
929
Comment Karma
1,015
Profile updated: 3 weeks ago
Posts updated: 2 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 months ago