javascript - Famo.us ScrollContainer not scrolling -


define(function(require, exports, module){ var view            = require('src/core/view'); var surface         = require('src/core/surface'); var scrollcontainer = require('src/views/scrollcontainer');  function listview(){     view.apply(this, arguments);     _createcontent.call(this); }  listview.prototype = object.create(view.prototype); listview.prototype.constructor = listview; listview.default_options = {     data: [] }  function _createcontent(){      var sc = new scrollcontainer();     var sequence = [];      sc.sequencefrom(sequence);      (var = 0; < this.options.data.length; i++) {         var surface = new surface({             content: this.options.data[i].name,             size: [undefined, 40],             properties: {                 borderbottom: '1px solid #000',                 padding: '10px 15px'             }         });         sequence.push(surface);     };      this.add(sc); }  module.exports = listview; }); 

as read title, problem famo.us scrollcontainer not scrolling. above code used add scrollable list. module included in pageview. pageview included in mainview has rendercontroller show or hide pages. list showing along data being passed module. problem scrolling. ideas?

the surface needs pipe events scrollcontainer.

    (var = 0; < this.options.data.length; i++) {         var surface = new surface({             content: this.options.data[i].name,             size: [undefined, 40],             properties: {                 borderbottom: '1px solid #000',                 padding: '10px 15px'             }         });         surface.pipe(sc);  // pipe surface events scrollcontainer         sequence.push(surface);     }; 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -