Hi Ken,

On Friday 18 September 2009 Ken MacDonald wrote:
> Hi,
> I'm trying to migrate a project I had working with qooxdoo 8.2-something to
> 8.3.
>
>     var layout = new qx.ui.layout.VBox();
>
> should work according to the sample in qx.ui.layout.VBox in the 8.3 docs,
> but I get:
>
> "qx.ui.layout.VBox is not a constructor"
>
> Also tried:
>     var layout = new qx.ui.layout.VBox(8);
>   which was working in the earlier version
>
> and
>
>     var layout = new qx.ui.layout.VBox(8, 'top', null);
>
> which seems to be the new form of the constructor - the doc says 'null' is
> the default 'Decorator', which appears to be required in the constructor? I
> have no clue as to how to make a proper Decorator; they are referred to
> several places in the doc but never really explained, just "use the default
> decorator". Any ideas how to make VBox() healthy again appreciated; on an
> earlier project I avoided the problem by converting to a Grid layout which
> doesn't require Decorators, but that was a pretty gruesome process and
> likely to be worse for this project.
The code should be valid. The class "qx.ui.layout.VBox" also exists in 0.8.3 
and there no changes made, as far as I know. [0]

Did you re-run the generator "source" job to include the new class? The 
generator does search for all necessary classes and only includes those which 
are neeeded by your application. If you introduce new classes you have to run 

        ./generate.py source

again.

Hope this helps.

cheers,
  Alex

[0] http://demo.qooxdoo.org/current/apiviewer/#qx.ui.layout.VBox

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to