Skip to content

Commit a7030bc

Browse files
committed
#8149 component.Base: waitForDomRect()
1 parent e330d2f commit a7030bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/component/Base.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,15 +1621,15 @@ class Component extends Abstract {
16211621
* await this.initVnode(true);
16221622
* await this.waitForDomRect();
16231623
* @param {Object} opts
1624-
* @param {String} opts.appName=this.appName
16251624
* @param {Number} opts.attempts=10 Reruns in case the rect height or width equals 0
16261625
* @param {Number} opts.delay=50 Time in ms before checking again
16271626
* @param {String[]|String} opts.id=this.id
1627+
* @param {String} opts.windowId=this.windowId
16281628
* @returns {Promise<Neo.util.Rectangle|Neo.util.Rectangle[]>}
16291629
*/
1630-
async waitForDomRect({appName=this.appName, attempts=10, delay=50, id=this.id}) {
1630+
async waitForDomRect({attempts=10, delay=50, id=this.id, windowId=this.windowId} = {}) {
16311631
let me = this,
1632-
result = await me.getDomRect(id, appName),
1632+
result = await me.getDomRect(id),
16331633
reRun = false;
16341634

16351635
if (Array.isArray(result)) {
@@ -1644,7 +1644,7 @@ class Component extends Abstract {
16441644

16451645
if (reRun && attempts > 0) {
16461646
await me.timeout(delay);
1647-
return await me.waitForDomRect({appName, attempts: attempts-1, delay, id})
1647+
return await me.waitForDomRect({attempts: attempts-1, delay, id, windowId})
16481648
}
16491649

16501650
return result

0 commit comments

Comments
 (0)