While attempting to display a panel in extJS 3.4.0, I encountered an issue. The panel renders correctly in Firefox but throws an error in Chrome:
Uncaught TypeError: Cannot call method 'applyStyles' of null Ext.Panel.Ext.extend.createElementext-all-debug.js:17057 // More error information...
The code snippet used is as follows:
var userDlg = new myDialog();
var contentPanel = {
id: 'content-panel',
region: 'center',
layout: 'card',
margins: '2 5 5 0',
activeItem: 0,
border: false,
items: userDlg
};
var viewport = new Ext.Viewport({
layout: 'border',
title: 'Ext Layout Browser',
items: [contentPanel],
renderTo: Ext.getBody()
});
If anyone can help me identify the source of the error, it would be greatly appreciated.
Thank you in advance.