right-to-left and clipping

Tom Eugelink tbee at tbee.org
Sun Jun 7 10:22:27 UTC 2015

Well, I spent quite some time on the clipping and while it I still can't get every situation to play nice, the basic code to get the clipping on a text working in right-to-left node orientation seems to be:

clip.x = text.width - text.parent.width


So it seems that clipping is not including in the automatic mirror when entering right-to-left mode. I would think this is a bug?


On 4-6-2015 21:29, Tom Eugelink wrote:
> Someone posted an issue with JFXtras Agenda and right-to-left node orientation. I fixed the part where dragging an appointment was using scene based coordinates and thus did not play nice with the automatic mirroring when right-to-left is activated.
> However, I also see rendering issues where clipping is used on a Text node to limit the visible descriptive text to the width and height of the appointment. After some fiddling I come to the conclusion that clipping apparently is not fully included in the mirroring. If it were, then the clip should render correctly, but OTOH it is not at its unmirrored position either. This partial behavior confuses me. In one situation I need to move the clip a illigical 20 pixels to the right when right-to-left is active. Very strange. Any ideas or suggestions what causes clipping to behave differently in the mirroring?
> Tom

More information about the openjfx-dev mailing list