Bug in Windows with Layout

Hi!

I’ve found a Bug in Windows in combination with Layouts.
I’ ve attached a Layout in a Window. When i closed this Window the Window disappears, but the Layout stays.

The same happens to all other Windows on the Main Layout.

You can even try it in the new Visual-Designer.

I use the new dhtmlx3.

Hello,

your information a bit unclear,
please provide more ditails how to reproduce the bug.

Hi!

If i create a Window and i close this, it dissapears.

Wenn i create a Layout like 1C or 2U in this window, the window dissapears but the layout stays in the width and height of this window.

Try it under:
helpdesk.meal-o.de/backend/

goto “Projekte & Tasks” open a window under “Aufgaben”, oven another one and close it.

The same to all other windows.

Hello,

could you please also put uncompressed dhtmlx files (sources)?

actualy the problem that when you close 2nd window - there still 1st window,
but something remove window’s css from body, and yo simply not see window borders.

The function, fireing onClick in Menu.

You can also reproduce this in Online Visual Designer.
Create 2 Popups and Close One of them. Only the CSS will removed.

[code]function WinTasksList() {

var win_t= windows.createWindow(Number(new Date()), 0, 0, 800, 600);
win_t.setText('Aufgaben');
win_t.centerOnScreen();

var main_layout = win_t.attachLayout('2U');

var tasks = main_layout.cells('a');
tasks.setWidth('200');

var message = main_layout.cells('b');
var form_1 = message.attachForm();
form_1.loadStruct('./modules/tasks/editor.xml.php', function(){form_1.load('./modules/tasks/data.php?id=0');});

}
[/code]

are you able to replace dhtmlx.js with corresponding sources in your demo? I can’t reproduce issue localy. sources needed for some debug.

I’ve get the dhtmlx.js out of the lib compiler directory in the suite.

I’m unable to create a personalized dhtmlx.js file in LibCompiler (I’ve already mailed).

But I think this is a general problem. Because i don’t think the O. V. D. uses my dhtmlx.js file

please try attached dhtmlxwindows.js
dhtmlxwindows.js.zip (20 KB)

Great! That’s it! Thx!

Hello
I ve got the same problem

How you did resolve it ?

Regards

Found one solution :

var win= new dhtmlXWindows();
win.attachEvent(“onClose”, function(win){
win.hide();
win.unload();
});

Attached onClose Event and i hide and unload it
Seems to work well for me

I’ve got a similar problem.
I have a window opened in the main window. but it refuses to close.
this is the code

            function adminUI()
            {
                //Open the Administrator UI window
                dhxWin = new dhtmlXWindows({
                image_path:"<?php echo base_url(); ?>dhtmlx/imgs/"
                });

                dhxWin.createWindow({
                id:"adminui",
                x:10,
                y:10,
                width:300,
                height:200,
                center:true
                });
                dhxWin.window("adminui").maximize();
                //dhxWin.setImagePath("<?php echo base_url(); ?>dhtmlx/imgs/");
                dhxWin.window("adminui").setModal(true);
                //dhxWin.window("adminui").setSkin("dhx_terrace");
                dhxWin.window("adminui").setText("Administration Console");
                dhxWin.window("adminui").denyResize();
                dhxWin.window("adminui").denyPark();
                dhxWin.window("adminui").attachURL("<?php echo site_url('vmatrix/admin'); ?>");
                dhxWin.attachEvent("onClose", function(win){
                    refreshUI();
                    
                    win.hide();
                    win.unload();
                    return true;
                });

            };

The refreshUI() just reloads all xml files for the grid ,treeview etc in the main layout in the parent page. Everything works fine till I add the onClose event handler. Any suggestions
The code for refreshui() is given below

function refreshUI() { //refresh grid and treeview dhxLayoutApp.cells("b").setText("&nbsp;"); dhxProductList.loadXML("<?php echo site_url('vmatrix/productlines'); ?>"); //treeview dhxProductList.refreshItem(); dhxAccInv.forEachItem(function(cat){ //hide all accordions cat.hide(); }); };

Alan Radius, vinuf666
Did you try to replace attached dhtmlxwindows.js file?

Hi all

one more issue was found in common.js, for those who interested in:
viewtopic.php?f=5&t=27000