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 control. 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: https://bitbucket.org/controlsfx/controlsfx/src/96f40eb0b579277139192e2398fbbaf7fd01f91e/controlsfx/src/main/resources/org/controlsfx/control/rating.css?at=default -- Rafal 2014-06-05 16:12 GMT+02:00 Martin Sladecek <martin.slade...@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. > > -Martin > > > On 06/05/2014 01:13 AM, Rafal Leibzig wrote: > >> Hi, >> >> Sorry for disturbing you, but I have a question and no one answered me on >> other forums. >> >> My question is rather simple: >> >> http://stackoverflow.com/questions/23997115/how-to- >> scale-control-and-layout-it-properly-in-javafx >> >> >> Thanks in advance. >> You are the experts. :) >> >> >> >