Attach dhtmlxWindow in a cell of dhtmlxLayout

Hello :slight_smile:



Is it possible to attach one or several dhtmlxWindow(s) in a big cell of a layout ?



Example : I’ve a 3T layout and I want to attach 3 different dhtmlxwindows in the cell ‘c’.



Thanks :slight_smile:

Hello

Do you mean using cell “c” as a windows’ viewport?

yes

Try this:



   
   



   
   





   

Fix dhtmlxwindows.js (for correct maximizing):

this._maximizeWindow = function(win) {
    …
    2 full lines below
    win.w = (win.maxW == “auto” ? (this.vp == document.body ? …
    win.h = (win.maxH == “auto” ? (this.vp == document.body ? …
    replace with
    win.w = (win.maxW == “auto” ? (this.vp == document.body ? “100%” : (this.vp.style.width != “” && String(this.vp.style.width).search("%") == -1 ? parseInt(this.vp.style.width) : this.vp.offsetWidth)) : win.maxW);
    win.h = (win.maxH == “auto” ? (this.vp == document.body ? “100%” : (this.vp.style.height != “” && String(this.vp.style.width).search("%") == -1 ? parseInt(this.vp.style.height) : this.vp.offsetHeight)) : win.maxH);


Hello, it works great thanks :slight_smile:



but…when I attach grid objects to the three windows, the layout height decrease, I don’t know why.



I’m using a 3T layout initialised in fullscreen mode.



If you need I can build an example and attach it to this ticket during the week-end.



Another question : I’ve modified dhtmlxwindows.js for correct maximizing. Is this correction will take part of the next version of dhtmlxwindow ?



Thanks for your answers

Hi,

>> If you need I can build an example and attach it to this ticket during the week-end.
yes, please make a sample

>> Is this correction will take part of the next version of dhtmlxwindow ?
yes, correction will take part in future release.

Here’s the sample

:slight_smile:

test.html.zip (1.42 KB)

Add the following style:

html,body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0px;
}

I’ve tried but there’s no effect on this sample.

Could you please attach a screenshot with the issue, because its ok on our side?

Hello :slight_smile:

Here’s the screenshot.

Browser used : Firefox 3.0.4
OS : GNU / Linux : Ubuntu 8.10


Its all ok on our side. Here is a screenshot.

(Ubuntu 7.10 / Firefox 3.0.3)



Hello I didn’t find the reason, so can you attach your test case with all dependancies ?



Thanks :slight_smile:

Hello, take it.

demo.zip (128 KB)