From 679ab490475aa3e2dcf20f70cd3586b9a39cd9e6 Mon Sep 17 00:00:00 2001
From: Sebastian Kupke
// Create the app
const app = new PIXIApp({
view: canvas,
- width: 900,
- height: 250
+ width: 600,
+ height: 400
}).setup().run()
// Create the Scrollview
@@ -1546,7 +1544,7 @@ app.loader
.add('elephant', './assets/elephant-1.jpg')
.load((loader, resources) => {
const sprite = new PIXI.Sprite(resources.elephant.texture)
- const scrollview = new Scrollview({boxWidth: 400, boxHeight: 180})
+ const scrollview = new Scrollview({boxWidth: 400, boxHeight: 300})
scrollview.content.addChild(sprite)
app.scene.addChild(scrollview)
@@ -1596,7 +1594,7 @@ app.loader
@@ -1703,7 +1701,7 @@ app.loader
diff --git a/doc/out/Slider.html b/doc/out/Slider.html
index 4d0fdfe..fc5d4a1 100644
--- a/doc/out/Slider.html
+++ b/doc/out/Slider.html
@@ -2960,7 +2960,7 @@ app.scene.addChild(slider)
diff --git a/doc/out/Switch.html b/doc/out/Switch.html
index 47715fa..cc0c1e1 100644
--- a/doc/out/Switch.html
+++ b/doc/out/Switch.html
@@ -3390,7 +3390,7 @@ app.scene.addChild(switch1)
diff --git a/doc/out/TextLabel.TextLabel.html b/doc/out/TextLabel.TextLabel.html
index eb5acc4..5ca8ee9 100644
--- a/doc/out/TextLabel.TextLabel.html
+++ b/doc/out/TextLabel.TextLabel.html
@@ -1684,7 +1684,7 @@
diff --git a/doc/out/Theme.html b/doc/out/Theme.html
index f6668fa..c42f2b4 100644
--- a/doc/out/Theme.html
+++ b/doc/out/Theme.html
@@ -3159,7 +3159,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeDark.html b/doc/out/ThemeDark.html
index 2efaa6b..e09c6b0 100644
--- a/doc/out/ThemeDark.html
+++ b/doc/out/ThemeDark.html
@@ -1580,7 +1580,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeLight.html b/doc/out/ThemeLight.html
index 20bc3c7..d8d4cdb 100644
--- a/doc/out/ThemeLight.html
+++ b/doc/out/ThemeLight.html
@@ -1592,7 +1592,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeRed.html b/doc/out/ThemeRed.html
index 00e90f1..b58a87a 100644
--- a/doc/out/ThemeRed.html
+++ b/doc/out/ThemeRed.html
@@ -1592,7 +1592,7 @@ const app = new PIXIApp({
diff --git a/doc/out/TileQuadNode.html b/doc/out/TileQuadNode.html
index 1e4389b..812007a 100644
--- a/doc/out/TileQuadNode.html
+++ b/doc/out/TileQuadNode.html
@@ -2044,7 +2044,7 @@ an indicator of tiles to free.
diff --git a/doc/out/Tooltip.html b/doc/out/Tooltip.html
index 0978515..683283f 100644
--- a/doc/out/Tooltip.html
+++ b/doc/out/Tooltip.html
@@ -2506,7 +2506,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/UITest.html b/doc/out/UITest.html
index 1e2d095..c6d562e 100644
--- a/doc/out/UITest.html
+++ b/doc/out/UITest.html
@@ -4177,7 +4177,7 @@ test.start()
diff --git a/doc/out/Volatile.html b/doc/out/Volatile.html
index 2b5fe3d..dd9d522 100644
--- a/doc/out/Volatile.html
+++ b/doc/out/Volatile.html
@@ -2093,7 +2093,7 @@ app.scene.addChild(button)
diff --git a/doc/out/global.html b/doc/out/global.html
index 872463c..1fb3007 100644
--- a/doc/out/global.html
+++ b/doc/out/global.html
@@ -3314,7 +3314,7 @@
diff --git a/doc/out/index.html b/doc/out/index.html
index fec0750..1938e1a 100644
--- a/doc/out/index.html
+++ b/doc/out/index.html
@@ -1480,7 +1480,7 @@
diff --git a/doc/out/pixi_abstractpopup.js.html b/doc/out/pixi_abstractpopup.js.html
index 62b8165..20b26d2 100644
--- a/doc/out/pixi_abstractpopup.js.html
+++ b/doc/out/pixi_abstractpopup.js.html
@@ -1808,7 +1808,7 @@ export default class AbstractPopup extends PIXI.Graphics {
diff --git a/doc/out/pixi_app.js.html b/doc/out/pixi_app.js.html
index 11fa23c..7c3112b 100644
--- a/doc/out/pixi_app.js.html
+++ b/doc/out/pixi_app.js.html
@@ -2179,7 +2179,7 @@ class FpsDisplay extends PIXI.Graphics {
diff --git a/doc/out/pixi_badge.js.html b/doc/out/pixi_badge.js.html
index 2f88199..3ff085f 100644
--- a/doc/out/pixi_badge.js.html
+++ b/doc/out/pixi_badge.js.html
@@ -1560,7 +1560,7 @@ export default class Badge extends AbstractPopup {
diff --git a/doc/out/pixi_blurfilter.js.html b/doc/out/pixi_blurfilter.js.html
index db272bb..9c65d14 100644
--- a/doc/out/pixi_blurfilter.js.html
+++ b/doc/out/pixi_blurfilter.js.html
@@ -1714,7 +1714,7 @@ class TiltShiftYFilter extends TiltShiftAxisFilter {
diff --git a/doc/out/pixi_button.js.html b/doc/out/pixi_button.js.html
index 332b4b8..3613252 100644
--- a/doc/out/pixi_button.js.html
+++ b/doc/out/pixi_button.js.html
@@ -2118,7 +2118,7 @@ export default class Button extends PIXI.Container {
diff --git a/doc/out/pixi_buttongroup.js.html b/doc/out/pixi_buttongroup.js.html
index 3b7dc2b..adea7c7 100644
--- a/doc/out/pixi_buttongroup.js.html
+++ b/doc/out/pixi_buttongroup.js.html
@@ -1797,7 +1797,7 @@ export default class ButtonGroup extends PIXI.Graphics {
diff --git a/doc/out/pixi_deepzoom_image.js.html b/doc/out/pixi_deepzoom_image.js.html
index 760aa16..4cea71d 100644
--- a/doc/out/pixi_deepzoom_image.js.html
+++ b/doc/out/pixi_deepzoom_image.js.html
@@ -2569,7 +2569,7 @@ export class DeepZoomImage extends PIXI.Container {
diff --git a/doc/out/pixi_flippable.js.html b/doc/out/pixi_flippable.js.html
index 5630ca8..b6dc3a8 100644
--- a/doc/out/pixi_flippable.js.html
+++ b/doc/out/pixi_flippable.js.html
@@ -1892,7 +1892,7 @@ export default class Flippable extends PIXI.projection.Camera3d {
diff --git a/doc/out/pixi_labeledgraphics.js.html b/doc/out/pixi_labeledgraphics.js.html
index dd2a4a6..74db136 100644
--- a/doc/out/pixi_labeledgraphics.js.html
+++ b/doc/out/pixi_labeledgraphics.js.html
@@ -1865,7 +1865,7 @@ export class BitmapLabeledGraphics extends LabeledGraphics {
diff --git a/doc/out/pixi_list.js.html b/doc/out/pixi_list.js.html
index 14bb0ce..865a183 100644
--- a/doc/out/pixi_list.js.html
+++ b/doc/out/pixi_list.js.html
@@ -1832,7 +1832,7 @@ export default class List extends PIXI.Container {
diff --git a/doc/out/pixi_message.js.html b/doc/out/pixi_message.js.html
index 73a7595..a52b067 100644
--- a/doc/out/pixi_message.js.html
+++ b/doc/out/pixi_message.js.html
@@ -1577,7 +1577,7 @@ export default class Message extends InteractivePopup {
diff --git a/doc/out/pixi_modal.js.html b/doc/out/pixi_modal.js.html
index c84e9ab..01655f5 100644
--- a/doc/out/pixi_modal.js.html
+++ b/doc/out/pixi_modal.js.html
@@ -1652,7 +1652,7 @@ export default class Modal extends PIXI.Container {
diff --git a/doc/out/pixi_popup.js.html b/doc/out/pixi_popup.js.html
index f2fd5d5..5580af4 100644
--- a/doc/out/pixi_popup.js.html
+++ b/doc/out/pixi_popup.js.html
@@ -1664,7 +1664,7 @@ export default class Popup extends InteractivePopup {
diff --git a/doc/out/pixi_popupmenu.js.html b/doc/out/pixi_popupmenu.js.html
index 27bc611..2f49bf9 100644
--- a/doc/out/pixi_popupmenu.js.html
+++ b/doc/out/pixi_popupmenu.js.html
@@ -1565,7 +1565,7 @@ export default class PopupMenu extends Popup {
diff --git a/doc/out/pixi_progress.js.html b/doc/out/pixi_progress.js.html
index d5d26c8..7f6bd6f 100644
--- a/doc/out/pixi_progress.js.html
+++ b/doc/out/pixi_progress.js.html
@@ -1754,7 +1754,7 @@ export default class Progress extends PIXI.Container {
diff --git a/doc/out/pixi_scrollview.js.html b/doc/out/pixi_scrollview.js.html
index 04d8d63..40caec2 100644
--- a/doc/out/pixi_scrollview.js.html
+++ b/doc/out/pixi_scrollview.js.html
@@ -1447,8 +1447,8 @@
* // Create the app
* const app = new PIXIApp({
* view: canvas,
- * width: 900,
- * height: 250
+ * width: 600,
+ * height: 400
* }).setup().run()
*
* // Create the Scrollview
@@ -1456,7 +1456,7 @@
* .add('elephant', './assets/elephant-1.jpg')
* .load((loader, resources) => {
* const sprite = new PIXI.Sprite(resources.elephant.texture)
- * const scrollview = new Scrollview({boxWidth: 400, boxHeight: 180})
+ * const scrollview = new Scrollview({boxWidth: 400, boxHeight: 300})
* scrollview.content.addChild(sprite)
* app.scene.addChild(scrollview)
*
@@ -1471,6 +1471,7 @@ export default class Scrollview extends Scrollbox {
* Creates an instance of a Scrollview.
*
* @constructor
+ * @see https://davidfig.github.io/pixi-scrollbox/jsdoc/Scrollbox.html
*/
constructor(opts = {}) {
@@ -1505,6 +1506,8 @@ export default class Scrollview extends Scrollbox {
*/
layout() {
+ this.update()
+
return this
}
}
@@ -1521,7 +1524,7 @@ export default class Scrollview extends Scrollbox {
diff --git a/doc/out/pixi_slider.js.html b/doc/out/pixi_slider.js.html
index dc7608b..e32b398 100644
--- a/doc/out/pixi_slider.js.html
+++ b/doc/out/pixi_slider.js.html
@@ -1922,7 +1922,7 @@ export default class Slider extends PIXI.Container {
diff --git a/doc/out/pixi_switch.js.html b/doc/out/pixi_switch.js.html
index a1e2c2b..e0357d2 100644
--- a/doc/out/pixi_switch.js.html
+++ b/doc/out/pixi_switch.js.html
@@ -1959,7 +1959,7 @@ export default class Switch extends PIXI.Container {
diff --git a/doc/out/pixi_theme.js.html b/doc/out/pixi_theme.js.html
index 1022241..aa989be 100644
--- a/doc/out/pixi_theme.js.html
+++ b/doc/out/pixi_theme.js.html
@@ -1687,7 +1687,7 @@ export class ThemeRed extends Theme {
diff --git a/doc/out/pixi_tooltip.js.html b/doc/out/pixi_tooltip.js.html
index 82c465f..f1e4a43 100644
--- a/doc/out/pixi_tooltip.js.html
+++ b/doc/out/pixi_tooltip.js.html
@@ -1606,7 +1606,7 @@ export default class Tooltip extends AbstractPopup {
diff --git a/doc/out/pixi_volatile.js.html b/doc/out/pixi_volatile.js.html
index 7dd535e..17f5abd 100644
--- a/doc/out/pixi_volatile.js.html
+++ b/doc/out/pixi_volatile.js.html
@@ -1612,7 +1612,7 @@ export default class Volatile {
diff --git a/doc/out/uitest.js.html b/doc/out/uitest.js.html
index e8220b7..a3fda1f 100644
--- a/doc/out/uitest.js.html
+++ b/doc/out/uitest.js.html
@@ -2416,7 +2416,7 @@ class Event {
diff --git a/lib/pixi/scrollview.js b/lib/pixi/scrollview.js
index ca12ec0..6a3ff71 100644
--- a/lib/pixi/scrollview.js
+++ b/lib/pixi/scrollview.js
@@ -7,8 +7,8 @@ import Scrollbox from './scrollbox.js'
* // Create the app
* const app = new PIXIApp({
* view: canvas,
- * width: 900,
- * height: 250
+ * width: 600,
+ * height: 400
* }).setup().run()
*
* // Create the Scrollview
@@ -16,7 +16,7 @@ import Scrollbox from './scrollbox.js'
* .add('elephant', './assets/elephant-1.jpg')
* .load((loader, resources) => {
* const sprite = new PIXI.Sprite(resources.elephant.texture)
- * const scrollview = new Scrollview({boxWidth: 400, boxHeight: 180})
+ * const scrollview = new Scrollview({boxWidth: 400, boxHeight: 300})
* scrollview.content.addChild(sprite)
* app.scene.addChild(scrollview)
*
@@ -31,6 +31,7 @@ export default class Scrollview extends Scrollbox {
* Creates an instance of a Scrollview.
*
* @constructor
+ * @see https://davidfig.github.io/pixi-scrollbox/jsdoc/Scrollbox.html
*/
constructor(opts = {}) {