Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#8147 closed bug (fixed)

Position: Documentation for flip collision says it falls back to center

Reported by: Mamen Owned by:
Priority: minor Milestone: 1.8.19
Component: ui.position Version: 1.8.18
Keywords: Cc:
Blocked by: Blocking:


From the documentation of position/options/collision:

flip: to the opposite side and the collision detection is run again to see if it will fit.
If it won't fit in either position, the center option should be used as a fall back.

While I am not entirely sure what "the center option" is, I assume it means that it should be positioned in the middle of the element instead of default position. This doesn't seem to work. Another option would be that "fit" is the fallback for "flip", since this would make sure that the elements is visible if possible.

Testcase: my: left,bottom at: left,top collision: flip

Now try resizing the browser window so it can't fit over OR under. There seems to be no fallback at all.

Change History (3)

comment:1 Changed 5 years ago by Scott González

Resolution: fixed
Status: newclosed
Summary: Flip collision fallback doesn't workPosition: Documentation for flip collision says it falls back to center

That's a documentation bug.

comment:2 Changed 5 years ago by Mamen

In that case, this ticket should be updated to either "documentation bug" so it will fixed, or "enhancement" since it would make position better.

comment:3 Changed 5 years ago by Scott González

It is fixed. Did you see the resolution?

Note: See TracTickets for help on using tickets.