Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.stage.update is not working properly #460

Open
eductech opened this issue Feb 28, 2023 · 1 comment
Open

this.stage.update is not working properly #460

eductech opened this issue Feb 28, 2023 · 1 comment
Labels
needs-reproduction Issue needs to be reproduced in order team to investigate further

Comments

@eductech
Copy link

eductech commented Feb 28, 2023

Description:

We use this.stage.update to get finalX, ... synchronously. But it still returns not finalized values. Smth like this, for the flex container:

this.childList.a(items); // items - array of patch templates
this.stage.update();
// and at this point `finalX` is still not calculated

Current solution:

-

Expected:

finalX should be available after stage.update call.

Additional data:

{
    "appSettings": {
        "stage": {
            "clearColor": "0x00000000",
            "useImageWorker": false,
            "defaultFontFace": "Inter",
            "precision": 1,
            "w": 1920,
            "h": 1080,
            "pauseRafLoopOnIdle": true
        },
        "enablePointer": true,
        "debug": true
    },
    "platformSettings": {
        "log": false,
        "path": "./static",
        "showVersion": false,
        "inspector": false,
        "showFps": true,
        "esEnv": "es5",
        "router": {
            "backtracking": false,
            "gcOnUnload": true,
            "lazyCreate": true,
            "lazyDestroy": true,
            "destroyOnHistoryBack": false,
            "reuseInstance": true,
            "logRoute": false,
            "updateHash": true,
            "autoRestoreRemote": false
        }
    }
}
    "@lightningjs/core": "2.7.1",
    "@lightningjs/sdk": "5.2.0",
    "@lightningjs/ui-components": "1.3.1",
@uguraslan
Copy link
Contributor

@eductech Thanks for reporting this issue. It would be great if you can provide a sample app so that we can check and reproduce the problem. You can also consider using the Lightning playground to provide a sample app.

@uguraslan uguraslan added the needs-reproduction Issue needs to be reproduced in order team to investigate further label Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-reproduction Issue needs to be reproduced in order team to investigate further
Projects
Status: No status
Development

No branches or pull requests

2 participants