How to scale control properly?
richard.bair at oracle.com
Tue Jun 10 03:09:00 UTC 2014
One thing we’ve always considered was adding some kind of convenience API to Node to toggle how the layout bounds are computed (whether they take into account transforms or not). Martin, how difficult would that be, do you think?
On Jun 5, 2014, at 11:41 AM, Rafal Leibzig <rafaljfx at gmail.com> wrote:
> Thanks for advice.
> I know this trick with wrapping in a Group, but as i wrote on
> stackoverflow, there is dropshadow effect after moving mouse over the
> This effect extends group's layoutBounds for a while.
> And when mouse leaves out the control, then group's layoutBounds shrink.
> I found the sources/css for this control:
> 2014-06-05 16:12 GMT+02:00 Martin Sladecek <martin.sladecek at oracle.com>:
>> Hi Rafal,
>> you can wrap the control in a Group. That way, it's (actually Group's)
>> layoutBounds will be the same as it's transformed bounds (boundsInParent).
>> Alternatively you can use css styling, but I don't know much about how to
>> do it properly, maybe Jonathan can help you there.
>> On 06/05/2014 01:13 AM, Rafal Leibzig wrote:
>>> Sorry for disturbing you, but I have a question and no one answered me on
>>> other forums.
>>> My question is rather simple:
>>> Thanks in advance.
>>> You are the experts. :)
More information about the openjfx-dev