PDA

View Full Version : FitToParent plugin and Liferay



melrocBOC
14 Feb 2011, 5:38 AM
Hi folks,
I'm using the plugin fitToParent to solve an adapting problem between my ExtJs code and a portlet.
I made an easy example to test this procedure and it runs! (I replaced the Ext.viewport component with an Ext.container and I put the plugin code in the javascript.)

I'm trying to use in the same way this plugin in another portlet (more complex) but I have this problem:

ERROR
Ext.preg('fittoparent', Ext.ux.FitToParent);
Uncaught TypeError: Object #<an Object> has no method 'preg'
(anonymous function)

What is this? I can't realize how this error happens..this doesn't happen in the easy example.

Thanks