Skip to content

Commit 503bd24

Browse files
committed
scroll bar docs fixes
1 parent fb455ab commit 503bd24

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

source/feathers/controls/ScrollBar.as

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,15 @@ package feathers.controls
5858
* <listing version="3.0">
5959
* list.horizontalScrollBarFactory = function():IScrollBar
6060
* {
61-
* return new ScrollBar();
61+
* var scrollBar:ScrollBar = new ScrollBar();
62+
* scrollBar.direction = ScrollBar.DIRECTION_HORIZONTAL;
63+
* return scrollBar;
6264
* };
6365
* list.verticalScrollBarFactory = function():IScrollBar
6466
* {
65-
* return new ScrollBar();
67+
* var scrollBar:ScrollBar = new ScrollBar();
68+
* scrollBar.direction = ScrollBar.DIRECTION_VERTICAL;
69+
* return scrollBar;
6670
* };</listing>
6771
*
6872
* @see http://wiki.starling-framework.org/feathers/scroll-bar

source/feathers/controls/Scroller.as

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,9 @@ package feathers.controls
642642
* <listing version="3.0">
643643
* scroller.horizontalScrollBarFactory = function():IScrollBar
644644
* {
645-
* return new ScrollBar();
645+
* var scrollBar:ScrollBar = new ScrollBar();
646+
* scrollBar.direction = ScrollBar.DIRECTION_HORIZONTAL;
647+
* return scrollBar;
646648
* };</listing>
647649
*
648650
* @default null
@@ -855,7 +857,9 @@ package feathers.controls
855857
* <listing version="3.0">
856858
* scroller.verticalScrollBarFactory = function():IScrollBar
857859
* {
858-
* return new ScrollBar();
860+
* var scrollBar:ScrollBar = new ScrollBar();
861+
* scrollBar.direction = ScrollBar.DIRECTION_VERTICAL;
862+
* return scrollBar;
859863
* };</listing>
860864
*
861865
* @default null

source/feathers/controls/SimpleScrollBar.as

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,15 @@ package feathers.controls
5757
* <listing version="3.0">
5858
* list.horizontalScrollBarFactory = function():IScrollBar
5959
* {
60-
* return new SimpleScrollBar();
60+
* var scrollBar:SimpleScrollBar = new SimpleScrollBar();
61+
* scrollBar.direction = SimpleScrollBar.DIRECTION_HORIZONTAL;
62+
* return scrollBar;
6163
* };
6264
* list.verticalScrollBarFactory = function():IScrollBar
6365
* {
64-
* return new SimpleScrollBar();
66+
* var scrollBar:SimpleScrollBar = new SimpleScrollBar();
67+
* scrollBar.direction = SimpleScrollBar.DIRECTION_VERTICAL;
68+
* return scrollBar;
6569
* };</listing>
6670
*
6771
* @see http://wiki.starling-framework.org/feathers/simple-scroll-bar

0 commit comments

Comments
 (0)