#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: |
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 (3)
comment:1 Changed 11 years ago by
Milestone: | 1.9 → 1.8.19 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Summary: | Flip collision fallback doesn't work → Position: Documentation for flip collision says it falls back to center |
comment:2 Changed 11 years ago by
In that case, this ticket should be updated to either "documentation bug" so it will fixed, or "enhancement" since it would make position better.
That's a documentation bug.