{"action":"reopened","issue":{"url":"https://api.github.com/repos/IjzerenHein/famous-flex/issues/113","labels_url":"https://api.github.com/repos/IjzerenHein/famous-flex/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/IjzerenHein/famous-flex/issues/113/comments","events_url":"https://api.github.com/repos/IjzerenHein/famous-flex/issues/113/events","html_url":"https://github.com/IjzerenHein/famous-flex/issues/113","id":99304373,"number":113,"title":"LayoutController insert 0 not working","user":{"login":"hwd91c","id":1832009,"avatar_url":"https://avatars.githubusercontent.com/u/1832009?v=3","gravatar_id":"","url":"https://api.github.com/users/hwd91c","html_url":"https://github.com/hwd91c","followers_url":"https://api.github.com/users/hwd91c/followers","following_url":"https://api.github.com/users/hwd91c/following{/other_user}","gists_url":"https://api.github.com/users/hwd91c/gists{/gist_id}","starred_url":"https://api.github.com/users/hwd91c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwd91c/subscriptions","organizations_url":"https://api.github.com/users/hwd91c/orgs","repos_url":"https://api.github.com/users/hwd91c/repos","events_url":"https://api.github.com/users/hwd91c/events{/privacy}","received_events_url":"https://api.github.com/users/hwd91c/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IjzerenHein/famous-flex/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-05T21:37:44Z","updated_at":"2015-08-08T08:05:04Z","closed_at":null,"body":"I am trying to insert surface to the top of the layout, but the surface doesn't seem to be rendered.\r\nI checked the getDataSource() and the added surface is in the list, but not rendered on the screen.\r\n\r\nSample code I am using:\r\n```\r\ndefine(function(require, exports, module) {\r\n  var View = require('famous/core/View');\r\n  var Surface = require('famous/core/Surface');\r\n  var LayoutController = require('famous-flex/LayoutController');\r\n  var ListLayout = require('famous-flex/layouts/ListLayout');\r\n  var CollectionLayout = require('famous-flex/layouts/CollectionLayout');\r\n\r\n  function Debug(options) {\r\n    View.apply(this, arguments);\r\n    this.layout = new LayoutController({\r\n      layout: ListLayout,\r\n      flow: true,\r\n      direction: 1,\r\n      autoPipeEvents: true,\r\n      alwaysLayout: true,\r\n      layoutOptions: {\r\n        margins: [0, 15]\r\n      }\r\n    });\r\n    this.add(this.layout);\r\n\r\n    this.contentHeaderSurface = new Surface({\r\n      size: [undefined, 34],\r\n      content: 'contentHeaderSurface'\r\n    });\r\n    this.layout.push(this.contentHeaderSurface);\r\n\r\n    this.addButton = new Surface({\r\n      size: [undefined, 40],\r\n      content: 'Add Surface',\r\n      properties: {\r\n        backgroundColor: '#144170',\r\n        color: '#fff',\r\n        textAlign: 'center',\r\n        padding: '8px'\r\n      }\r\n    });\r\n    this.addButton.on('click', this._onaddButtonClick.bind(this));\r\n\r\n    this.removeButton = new Surface({\r\n      size: [undefined, 40],\r\n      content: 'Remove Surface',\r\n      properties: {\r\n        backgroundColor: '#ffbf25',\r\n        color: '#000',\r\n        textAlign: 'center',\r\n        padding: '8px'\r\n      }\r\n    });\r\n    this.removeButton.on('click', this._onremoveButtonClick.bind(this));\r\n\r\n    this.buttons_grid = new LayoutController({\r\n      layout: CollectionLayout,\r\n      layoutOptions: {\r\n        direction: 1,\r\n        cells: [2, 1],\r\n        spacing: [15, 0]\r\n      },\r\n      dataSource: [\r\n        this.addButton,\r\n        this.removeButton\r\n      ]\r\n    });\r\n    this.layout.push(this.buttons_grid);\r\n  }\r\n\r\n  Debug.prototype = Object.create(View.prototype);\r\n  Debug.prototype.constructor = Debug;\r\n  Debug.prototype._onremoveButtonClick = function() {\r\n    this.layout.remove(this.contentHeaderSurface);\r\n  };\r\n  Debug.prototype._onaddButtonClick = function() {\r\n    this.layout.insert(0, this.contentHeaderSurface);\r\n  };\r\n  module.exports = Debug;\r\n});\r\n```\r\n"}}