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

Container dimensions wrong #202

Open
ekelokorpi opened this Issue Aug 23, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@ekelokorpi
Owner

ekelokorpi commented Aug 23, 2018

game.createScene('Main4', {
    init: function(key) {
        var container = new game.Container();
        container.position.set(100, 100);
        container.addTo(this.stage);
        
        var sprite = new game.Sprite('circle.png');
        sprite.position.set(100, 100);
        sprite.addTo(container);
        
        var container = new game.Container();
        container.position.set(100, 300);
        container.addTo(this.stage);
        
        var text = new game.Text('Hello Panda');
        text.position.set(100, 100);
        text.addTo(container);
        
        var container = new game.Container();
        container.position.set(300, 100);
        container.addTo(this.stage);
        
        var grap = new game.Graphics();
        grap.drawRect(0, 0, sprite.width, sprite.height);
        grap.position.set(100, 100);
        grap.addTo(container);
    }
});

screen shot 2018-10-04 at 13 18 12

@ekelokorpi ekelokorpi added this to the 2.10.0 milestone Aug 23, 2018

@ekelokorpi ekelokorpi added the bug label Aug 24, 2018

@ekelokorpi ekelokorpi changed the title from Container dimensions wrong when adding Graphics to Container dimensions wrong Oct 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment