API Review RT:17407 Canvas Node

Kevin Rushforth kevin.rushforth at oracle.com
Mon Apr 23 05:36:43 PDT 2012

If Canvas were a "Resizable" node then yes, it could do that. Off-hand, 
I can't think of any reason it should not be resizable.

-- Kevin

Daniel Zwolenski wrote:
>> A Canvas node is a fixed size, so it only resizes when you tell it to. If you want it to track the size of the Scene (or similar), you could bind its width and height properties and react to change notifications.
> Any reason why Canvas wouldn't just adhere to the Layout algorithm of the Container it is in? Eg if in a BorderPane center then fill, if in a GridPane take up that cell, etc. If we want to fix size then we would use min/max constraints. 
> That would seem the most sensible and useful thing to me. 

More information about the openjfx-dev mailing list