Marc-QNX
28 Nov 2011, 10:36 AM
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:
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'});
},
});
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
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:
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'});
},
});
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