-
28 Nov 2011 10:36 AM #1
Panel with template no longer scrollable after setData is called
Panel with template no longer scrollable after setData is called
REQUIRED INFORMATION
ST version tested:- ST 2 PR 2
Browser versions tested against:- Chrome 15
- Safari 5
Description:- If a container contains a template and is scrollable, it is no longer scrollable after setData is called.
Steps to reproduce the problem:- Create MVC app with code below
- Run app as is. Notice panel is empty but scrollable.
- Uncomment line 15 in the Main controller and rerun app
- Notice panel is no longer scrollable
The result that was expected:- panel should be scrollable
The result that occurs instead:- panel is not scrollable
Test Case:
Code:Ext.define('Test.controller.Main', { extend: 'Ext.app.Controller', views : [ 'Home', ], refs: [ { ref : 'index', selector: 'homeView', }], init: function() { Ext.Viewport.add(this.getHomeView().create()); //this.getIndex().setData({test: 'test'}); }, });
Code:Ext.define('Test.view.Home', { extend: 'Ext.Container', xtype: 'homeView', config: { layout: 'card', scrollable: { direction: 'vertical' }, tpl: 'Testing: {test}' }, });
HELPFUL INFORMATION
Operating System:- Mac OSX 10.6.7
-
28 Nov 2011 10:45 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,658
- Vote Rating
- 14
Thank you for the report.
-
20 Jan 2012 10:06 AM #3
This was fixed in PR3.
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote