Skip to content

Text is getting stretched when width is getting inherited #24

@stenalpjolly

Description

@stenalpjolly
class FlexExample extends lng.Application {
    static _template() {
        return {
            x: 10,
            w: 750,
            y: 10,
            Sample_Wrong:{
                w:(w=>w),
                h:200,
                text:{
                    text:"STRECHED"
                }
            },
            Sample_Expected:{
                y: 50,
                w:750,
                h:200,
                text:{
                    text:"EXPECTED"
                }
            }
        }
     }
}


const options = {stage: {w: window.innerWidth, h: window.innerHeight, useImageWorker: false}};
const app = new FlexExample(options);
document.body.appendChild(app.stage.getCanvas());

image

@thiblahute @Ms2ger @basvanmeurs @clopez @kuscsik

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions