I have a canvas say that has an image and a few other
components on it. They're all layed out using combinations of
I have an image on the canvas whose size can vary depending
on which image is loaded. I'd like for the (parent) canvas to size
itself as per the size of all its children. For the life of me I
can't seem to find a way to do this.
I've set the horiz/verticalscrollpolicy to off because I
don't want scroll bars on any side. The image gets clipped and the
canvas stays the same size. If I set clipContents to false, the
image doesn't get clipped any more but the canvas it still the same
So how would I go about achieving what I need, or is Canvas
the wrong component to use?
I know you can modify the canvas size at runtime.
Have you tried a method which adjusts the canvas size to fit
I am presuming that the canvas spoken of is not the root
application tag, but one inside the application tag
Yes, I know I can size the canvas at runtime too :). I was
hoping (since a canvas is a "container") that the canvas could to
told to size itself to it's content while at the same time keeping
things like margin/padding in mind.