right-to-left and clipping

Kevin Rushforth kevin.rushforth at oracle.com
Mon Jun 8 12:44:17 UTC 2015


At first glance, I agree that this seems like a bug. Please file a JIRA 
issue with your test program.

Thanks.

-- Kevin


Tom Eugelink wrote:
> 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
>
> https://github.com/JFXtras/jfxtras/blob/8.0/jfxtras-agenda/src/main/java/jfxtras/internal/scene/control/skin/agenda/base24hour/LayoutHelp.java#L89 
>
>
> 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?
>
> Tom
>
>
>
>
> 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