Posted 14 September 2017, 2:52 am EST
Hi,
Wijmo: 5.20163.234
Angular: 2.1.2
I need a popup to display in the center of the screen, however when the active element is from a fixed float window it centers from the floating window instead of the main document.
I cannot code around this issue at all.
Your code:
// 3 - no reference element, adjust the parent based on the current active element // (e.g.grid in dialog, jQuery panel) for (var e = getActiveElement(); e; e = e.parentElement) { if (!hasClass(e, 'wj-popup') && // not our own popups: TFS 206009 getComputedStyle(e).position == 'fixed') { parent = e; break; } }
Thanks in advance,
Anthony