fix(ags winpopup): pass window to onOpen and onClose
This commit is contained in:
parent
0db1766755
commit
f82df8a551
2 changed files with 5 additions and 5 deletions
|
@ -63,11 +63,11 @@ export default ({
|
||||||
rev.revealChild = isOpen;
|
rev.revealChild = isOpen;
|
||||||
|
|
||||||
if (isOpen) {
|
if (isOpen) {
|
||||||
onOpen(child);
|
onOpen(window);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
timeout(transitionDuration, () => {
|
timeout(transitionDuration, () => {
|
||||||
onClose(child);
|
onClose(window);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,9 +93,9 @@ export default () => {
|
||||||
name: 'overview',
|
name: 'overview',
|
||||||
blur: true,
|
blur: true,
|
||||||
closeOnUnfocus: 'none',
|
closeOnUnfocus: 'none',
|
||||||
onOpen: () => {
|
onOpen: (win) => {
|
||||||
window.setChild(Overview());
|
win.setChild(Overview());
|
||||||
window.getChild().getChild().update();
|
win.getChild().getChild().update();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue