diff --git a/.gitignore b/.gitignore index aa8eb86..8a247b2 100644 --- a/.gitignore +++ b/.gitignore @@ -79,4 +79,3 @@ typings/ # own *.code-workspace .history/ - diff --git a/doc/out/AbstractPopup.html b/doc/out/AbstractPopup.html index df4782f..b6c40dd 100644 --- a/doc/out/AbstractPopup.html +++ b/doc/out/AbstractPopup.html @@ -2912,7 +2912,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/Badge.html b/doc/out/Badge.html index faf0b7c..3bf9cbc 100644 --- a/doc/out/Badge.html +++ b/doc/out/Badge.html @@ -2368,7 +2368,7 @@ a string, a number or a PIXI.Text object. diff --git a/doc/out/BlurFilter.html b/doc/out/BlurFilter.html index 654100b..128f987 100644 --- a/doc/out/BlurFilter.html +++ b/doc/out/BlurFilter.html @@ -1792,7 +1792,7 @@ app.scene.filters = [blurFilter] diff --git a/doc/out/Button.html b/doc/out/Button.html index b9affde..8913aac 100644 --- a/doc/out/Button.html +++ b/doc/out/Button.html @@ -3810,7 +3810,7 @@ the tint property of the icon sprite. diff --git a/doc/out/ButtonGroup.html b/doc/out/ButtonGroup.html index 27aa3b1..fdbd904 100644 --- a/doc/out/ButtonGroup.html +++ b/doc/out/ButtonGroup.html @@ -3206,7 +3206,7 @@ app.scene.addChild(buttonGroup) diff --git a/doc/out/DeepZoomImage.html b/doc/out/DeepZoomImage.html index f8451d6..d45b4b8 100644 --- a/doc/out/DeepZoomImage.html +++ b/doc/out/DeepZoomImage.html @@ -5090,7 +5090,7 @@ i.e. after loading a single tile diff --git a/doc/out/DeepZoomInfo.html b/doc/out/DeepZoomInfo.html index 34577bb..6260bb7 100644 --- a/doc/out/DeepZoomInfo.html +++ b/doc/out/DeepZoomInfo.html @@ -2603,7 +2603,7 @@ on completion. diff --git a/doc/out/Flippable.html b/doc/out/Flippable.html index 9c5b8dc..6d3a5be 100644 --- a/doc/out/Flippable.html +++ b/doc/out/Flippable.html @@ -2506,7 +2506,7 @@ front.on('click', event => flippable.toggle()) diff --git a/doc/out/FontInfo.html b/doc/out/FontInfo.html index 9e44899..b6c5463 100644 --- a/doc/out/FontInfo.html +++ b/doc/out/FontInfo.html @@ -1553,7 +1553,7 @@ diff --git a/doc/out/Hypenate.html b/doc/out/Hypenate.html index 9df23cc..f2828e0 100644 --- a/doc/out/Hypenate.html +++ b/doc/out/Hypenate.html @@ -1755,7 +1755,7 @@ diff --git a/doc/out/InteractivePopup.html b/doc/out/InteractivePopup.html index 6c75de1..b5e13d4 100644 --- a/doc/out/InteractivePopup.html +++ b/doc/out/InteractivePopup.html @@ -2337,7 +2337,7 @@ a string, a number or a PIXI.Text object. diff --git a/doc/out/LabeledGraphics.exports.LabeledGraphics.html b/doc/out/LabeledGraphics.exports.LabeledGraphics.html index b04e146..423a3e9 100644 --- a/doc/out/LabeledGraphics.exports.LabeledGraphics.html +++ b/doc/out/LabeledGraphics.exports.LabeledGraphics.html @@ -1555,7 +1555,7 @@ diff --git a/doc/out/LabeledGraphics.html b/doc/out/LabeledGraphics.html index 265e507..357bc5b 100644 --- a/doc/out/LabeledGraphics.html +++ b/doc/out/LabeledGraphics.html @@ -2620,7 +2620,7 @@ than wanted diff --git a/doc/out/List.html b/doc/out/List.html index 77a8e5c..1511eb7 100644 --- a/doc/out/List.html +++ b/doc/out/List.html @@ -2579,7 +2579,7 @@ app.scene.addChild(list) diff --git a/doc/out/Message.html b/doc/out/Message.html index 34940ee..0433386 100644 --- a/doc/out/Message.html +++ b/doc/out/Message.html @@ -2435,7 +2435,7 @@ a string, a number or a PIXI.Text object. diff --git a/doc/out/MessageInteractivePopup.html b/doc/out/MessageInteractivePopup.html index 4e4ba1d..0b8019c 100644 --- a/doc/out/MessageInteractivePopup.html +++ b/doc/out/MessageInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/MessageMessageInteractivePopup.html b/doc/out/MessageMessageInteractivePopup.html index 2b18401..55e683b 100644 --- a/doc/out/MessageMessageInteractivePopup.html +++ b/doc/out/MessageMessageInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/Modal.html b/doc/out/Modal.html index 49a6fdf..009eb17 100644 --- a/doc/out/Modal.html +++ b/doc/out/Modal.html @@ -2336,7 +2336,7 @@ a string or a PIXI.Text object. diff --git a/doc/out/ModalInteractivePopup.html b/doc/out/ModalInteractivePopup.html index e0d1e51..5d0489a 100644 --- a/doc/out/ModalInteractivePopup.html +++ b/doc/out/ModalInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/ModalModalInteractivePopup.html b/doc/out/ModalModalInteractivePopup.html index 39145cf..ae998eb 100644 --- a/doc/out/ModalModalInteractivePopup.html +++ b/doc/out/ModalModalInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/PIXIApp.html b/doc/out/PIXIApp.html index 49cf1fc..08c9ad2 100644 --- a/doc/out/PIXIApp.html +++ b/doc/out/PIXIApp.html @@ -5737,7 +5737,7 @@ rejected with an error. diff --git a/doc/out/Popup.html b/doc/out/Popup.html index a847f56..d1dbed6 100644 --- a/doc/out/Popup.html +++ b/doc/out/Popup.html @@ -2330,7 +2330,7 @@ a string, a number or a PIXI.Text object. diff --git a/doc/out/PopupInteractivePopup.html b/doc/out/PopupInteractivePopup.html index af08fa4..795df17 100644 --- a/doc/out/PopupInteractivePopup.html +++ b/doc/out/PopupInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/PopupMenu.html b/doc/out/PopupMenu.html index 0240932..b55cd44 100644 --- a/doc/out/PopupMenu.html +++ b/doc/out/PopupMenu.html @@ -2384,7 +2384,7 @@ a string, a number or a PIXI.Text object. diff --git a/doc/out/PopupMenuPopupInteractivePopup.html b/doc/out/PopupMenuPopupInteractivePopup.html index de73cb7..0dafa69 100644 --- a/doc/out/PopupMenuPopupInteractivePopup.html +++ b/doc/out/PopupMenuPopupInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html b/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html index 1067189..ace450a 100644 --- a/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html +++ b/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html b/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html index 3ac0dd4..2fa65d3 100644 --- a/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html +++ b/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/PopupMenuPopupPopupInteractivePopup.html b/doc/out/PopupMenuPopupPopupInteractivePopup.html index 30d7550..4a69b23 100644 --- a/doc/out/PopupMenuPopupPopupInteractivePopup.html +++ b/doc/out/PopupMenuPopupPopupInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/PopupPopupInteractivePopup.html b/doc/out/PopupPopupInteractivePopup.html index 0e0ae58..19d9db2 100644 --- a/doc/out/PopupPopupInteractivePopup.html +++ b/doc/out/PopupPopupInteractivePopup.html @@ -1783,7 +1783,7 @@ like Popup, Message... diff --git a/doc/out/Progress.html b/doc/out/Progress.html index c2248b9..d9a0626 100644 --- a/doc/out/Progress.html +++ b/doc/out/Progress.html @@ -2869,7 +2869,7 @@ app.scene.addChild(progress) diff --git a/doc/out/Scrollview.html b/doc/out/Scrollview.html index cecb93e..1666dc8 100644 --- a/doc/out/Scrollview.html +++ b/doc/out/Scrollview.html @@ -1465,7 +1465,7 @@ @@ -1508,9 +1508,7 @@// 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 = {}) {