Ticket #8147 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

Description

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:  http://jqueryui.com/demos/position/default.html 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

comment:1 Changed 2 years ago by scott.gonzalez

  • Status changed from new to closed
  • Summary changed from Flip collision fallback doesn't work to Position: Documentation for flip collision says it falls back to center
  • Resolution set to fixed
  • Milestone changed from 1.9 to 1.8.19

That's a documentation bug.

comment:2 Changed 2 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 2 years ago by scott.gonzalez

It is fixed. Did you see the resolution?

Note: See TracTickets for help on using tickets.