I have made a simple enyo app to teat scrolling. It scrolls vertically, but not horizontal. Allso the documentation says you must set the scroll size. The example code usses flex: 1 for the size, could somebody explain how this works.
code enyo.kind({ name: "MyApps.MainApp", kind: enyo.VFlexBox, components: [ {kind: "PageHeader", content: "Scroll"}, {name:"curValue", content:("Sample Text")}, {kind: "Button", caption: "Action", onclick: "btnClickA"},
{kind: "Scroller", flex: 1, onScrollStart: "btnClick", components: [
{ content:("Sample Text1")},
{ content:("Sample Text2")}
]}
], btnClick: function() { this.$.curValue.setContent("Start Scroll"); // handle the button click },
btnClickA: function() {
this.$.curValue.setContent("Button click"); // handle the button click
} });