Admins, feel free to delete. This question was previously answered: https://www.sencha.com/forum/showthr...e-config-issue
This seems like it would be a pretty common scenario. I have 2 containers. They are side by side. When the page gets under a certain width, i would like them stacked. They both have a flex of 1.
Code:
responsiveConfig: { 'width > 768': {
layout: {
type: 'hbox',
align: 'stretch',
pack: 'start'
}
},
'width <= 768': {
layout: {
type: 'vbox',
align: 'stretch',
pack: 'start'
}
}
},
The following error gets thrown when shrinking the browser
Code:
Uncaught TypeError: Cannot read property 'dom' of undefined
Code:
/** * Moves Component to the provided target instead.
* @private
*/
moveItem: function(item, target, position) {
target = target.dom || target; <<<== the offending line
if (typeof position === 'number') {
position = target.childNodes[position];
}
target.insertBefore(item.el.dom, position || null);
item.container = Ext.get(target);
this.configureItem(item);
},