mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
Add hacky fix for left-positioned popovers not appearing correctly on first appearance
This commit is contained in:
@@ -201,6 +201,9 @@ export function popover(klass) {
|
||||
if (_content) popoverSelection.selectAll('.popover-inner').call(_content.apply(this, arguments));
|
||||
|
||||
updatePosition.apply(this, arguments);
|
||||
// hack: update twice to fix instances where the absolute offset is
|
||||
// set before the dynamic popover size is calculated by the browser
|
||||
updatePosition.apply(this, arguments);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user