Skip to content

Commit

Permalink
Added scrollbox.update to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig authored Feb 18, 2020
1 parent 73e4f90 commit 741a3ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const sprite = scrollbox.content.addChild(new PIXI.Sprite(PIXI.Texture.WHITE))
sprite.width = sprite.height = 500
sprite.tint = 0xff0000

// force an update of the scrollbox's calculations after updating the children
scrollbox.update()

// add the viewport to the stage
const app = new PIXI.Application()
document.body.appendChild(app.view)
Expand Down Expand Up @@ -70,4 +73,4 @@ or [download the latest build from github](https://github.com/davidfig/pixi-scro

## license
MIT License
(c) 2019 [YOPEY YOPEY LLC](https://yopeyopey.com/) by [David Figatner](https://twitter.com/yopey_yopey/)
(c) 2019 [YOPEY YOPEY LLC](https://yopeyopey.com/) by [David Figatner](https://twitter.com/yopey_yopey/)

0 comments on commit 741a3ff

Please sign in to comment.