Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


widget-position-constrain preventOverlap should support TC/BC, LC/RC #1673

timhunt opened this Issue · 0 comments

1 participant


Looking at this code

I cannot see a good reason why "lcrc": 1, "rclc": 1 is missing from the x array, and "tcbc": 1, "bctc": 1 is missing from the y array.

And, that lack is causing this problem in Moodle:

Also, there are still more combinations of alignment that can potentially lead to overlap. E.g. tlbr will cause overlap if the thing you are positioning relative to is very close to a corner of the containing element.

Of course, if there is a good reason why we can't change this in YUI, there is a work-around for Moodle, to change the alignment we use to one that supports preventOverlap, even if that looks slightly less nice, in our opinion.

Thank you for your consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.