Hello Kirk,

It is necessary to set minWidth and minHeight properties for the window to
avoid the error. Change your code in create_buggy_tab function like this:

        var window1 = new qx.ui.window.Window("Test");
        window1.set({ top: 100
                      , left: 100
                      , width: 300
                      , height: 200
                      , allowMaximize: false
                      , allowMinimize: false 
                , minWidth : 300
                , minHeight : 200
                    });

        window1.addEventListener("beforeAppear", function(e){
            this.debug("beforeAppear");
        }, this);

        window1.addEventListener("beforeDisappear", function(e) {
            this.debug("beforeDisappear");
        }, this);

        var d = qx.ui.core.ClientDocument.getInstance();
        d.add(window1);

        edit.addEventListener("execute", function(e) {
        this.debug("Execute: Edit Pressed");
            window1.open();
        }, this);


Best wishes,
Denis



Kirk Abbott-2 wrote:
> 
> Hello,
> 
> I am trying to add some events to bring up a dialog (see line 150 and 
> 176 of the attached code). The page has a tab which includes a table and 
> a toolbar. I am using a verticallayout. The action that I am trying to 
> invoke is attached to the Edit button on the toolbar.
> 
> However, I get the following error. The simplest version of 
> Application.js is attached. Any ideas?
> 
> 010969 ERROR: qx.ui.core.ClientDocument[59]: Could not layout child
> [object qx.ui.window.Window] through layout handler: TypeError -
> this._style has no properties
>   at qx.ui.core.Widget:1000
>   at qx.ui.layout.impl.CanvasLayoutImpl:282
>   at qx.ui.layout.impl.LayoutImpl:581
>   at qx.ui.layout.impl.CanvasLayoutImpl:242
>   at qx.ui.core.Parent:1247
>   at qx.ui.layout.impl.LayoutImpl:435
>   at qx.ui.core.Parent:1168
>   at qx.ui.core.Widget:647
>   at qx.ui.core.Widget:268
>   at qx.event.handler.EventHandler:995
>   at qx.event.handler.EventHandler:806
>   at qx.lang.Function:181
> 
> Thanks,
> Kirk.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-when-trying-to-show-qx.ui.window.Window-tf4645935.html#a13289367
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to