Calendar and clock popups are wrongly positioned if within a scrollable div
|Reported by:||Owned by:||Robert Coup|
|Severity:||Keywords:||DateTimeShortcuts calendar clock admin scrolling position|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
The calendar and clock popups created through DateTimeShortcuts.js are positioned relative to cumulative offset (left and top) of all parent objects. This doesn't work if the firing up the popup is within a scrollable div. The popups get misaligned by the actual distances scrolled. This is very easily fixed by subtracting the scrolled distance from the objects' offsets whilst iterating through.
See attached patch of core.js.
Change History (13)
comment:4 Changed 9 years ago by
|Owner:||changed from nobody to Robert Coup|
|Patch needs improvement:||set|
|Status:||new → assigned|