Y.DOM.setXY doesn't work with right positioned elements in RTL #1569

Open
jbalsas opened this Issue Jan 22, 2014 · 0 comments

Projects

None yet

1 participant

@jbalsas
Contributor
jbalsas commented Jan 22, 2014

Currently, if a node positioned using right is inside an rtl block, Y.DOM.setXY fails to position it correctly.

You can check this behaviour in this fiddle. You can see how the last node never gets positioned correctly.

As per the specs, inside rtl blocks, right trumps left, so if a node is already styled using it, the inline position will never apply.

Y.DOM.setXY should switch to a right-based calculation in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment