PDA

View Full Version : [INFOREQ] ViewModel store binding doesn't work when using Fit layout on the viewport



IvanJ
11 Aug 2015, 9:59 PM
Using 6 GA classic; consider the following configuration of the Main viewport (from the contest):


viewModel: { stores: {
feeds: {
type: 'feeds',
autoLoad: true
}
}
},


layout: 'border',


items: {
region: 'center',
xtype: 'responsive_feed_post_grid',
bind: {
feedsStore: '{feeds}'
}
}

This will work and setFeedsStore will be called correctly.

However, if I were to change layout to fit and remove the region: center, the setFeedsStore would still be called, but it would always have a null parameter.

evant
12 Aug 2015, 1:23 AM
Please post a test case that demonstrates the issue.

s1h

IvanJ
12 Aug 2015, 10:36 AM
I tried it in 6.0.0.640 fiddle and it doesn't repro. However, when following the contest setup instructions, it did end up automatically downloading the "trial" version of ExtJS (even though it's 6.0.0.640 as well), and I can certainly reproduce it there. Would be happy to do a screenshare if you want.

evant
12 Aug 2015, 7:25 PM
I don't really see layouts and binding being connected, so without a proper test case it's not really feasible to go further, to do a screenshare it would end up in the same place (need a test case).

I'll leave this as information required for now.