I'm not aware of one, but could be mistaken.  Are you thinking of the
scaling built into Pivot itself?  (CTRL SHIFT + and CTRL SHIFT -)

What exactly do you need/want?
1. To create an arbitrary Component graph as normal, with whatever
properties & styles specified using absolute values.  (Created from BXML or
in straight java code)
2. Then if placed into a 'standard' container it would render as normal.
3. If placed in the 'scale to fit' container the root component and all
children would be scaled with mouse & keyboard behaviour unchanged

So if the 'scale to fit' container was 3 times wider than the preferred with
of the root component, and 2 times taller, its child would be stretched
accordingly and have a different aspect ratio?

Chris

On 25 February 2011 12:54, Bill van Melle <[email protected]> wrote:

> I could have sworn I once ran across a Pivot container that scaled its
> child to whatever size you made the container, but I can't find it now.  Was
> I hallucinating?
>
> (Yes, I know Pivot by default scales things, in the sense that an ImageView
> with fill=true will scale to its container, and things like TablePane with
> width/height specified with * and GridPane make their children a size that
> fills the space.  But it doesn't automatically scale fonts, or any of the
> other constants that one sticks in component/style properties, like vertical
> spacing, padding, fixed row/column widths, etc.  I tried using a
> ScaleDecorator, which works as far as display is concerned, but totally
> fails when it comes to hit detection on the underlying component.)
>

Reply via email to