JFXtras / jfxtras

A supporting library for JavaFX, containing helper classes, extended layouts, controls and other interesting widgets.
http://jfxtras.org
Other
599 stars 123 forks source link

Dragging is reversed when node orientation is RTL #31

Closed vova1987 closed 9 years ago

vova1987 commented 9 years ago

When dragging an appointment pane inside an Agenda control set with RTL orientation, the pane moves to the opposite side of the mouse.

tbee commented 9 years ago

Can you provide a small example? I have to confess that I have not ever run Agenda in RTL.

vova1987 commented 9 years ago

Sure... just set the nodeOrientation property of thhe agenda control to RIGHT_TO_LEFT. then add a new appointment and drag it to another day column. You will see that the mouse and the pane are going to opposite directions...

On Fri, May 29, 2015, 8:56 PM Tom Eugelink notifications@github.com wrote:

Can you provide a small example? I have to confess that I have not ever run Agenda in RTL.

— Reply to this email directly or view it on GitHub https://github.com/JFXtras/jfxtras/issues/31#issuecomment-106888834.

tbee commented 9 years ago

Indeed. The cause seems to be that I do the drag calculations using screen based X and Y, which are (as it seems) not included in the automatic mirroring of the X. The screen is of course the thing that all nodes share, so it is easy. I have to think about how to fix this...