When a dhtmlx window is opened using document.body, the window object used to resize to completely fill the parent window when the parent is resized. This doesn’t seem to work in version 4.02. Note the behavior when running the full screen sample demo at:
Press the “open demo” button, set the window obect (not the parent window) to maximize so it fills the parent window and then pull the border of the resulting parent window to make it a little shorter or greater in height. In the past, the dhtmlx window would snap to fill the exact inner window area. Now it doesn’t and keeps it’s original dimensions. Looks pretty unprofessional. Is there a method to invoke that would enable this behavior? The docs seem to indicate it happens automatically now but the demo seems to prove otherwise. Is attachViewportTo needed, and if so, what is the syntax when using document.body?
Tested this with v 4.03 download and still -NOT- working.
Also tested with the sample program listed in first posting, same result (assuming those are running on v 4.03 now as well). The child window does -not-resize when the containing browser window is resized.
Please doublecheck and make sure this gets fixed. It seems very basic that the window objects should fit within their containing windows when used in full window mode. The current implementation just looks sloppy.
Press the “open demo” button, set the window obect (not the parent window) to maximize so it fills the parent window and then pull the border of the resulting parent window to make it a little shorter or greater in height. In the past, the dhtmlx window would snap to fill the exact inner window area. Now it doesn’t and keeps it’s original dimensions. It seems like you’re not capturing the move events in the parent window. Looks pretty unprofessional. Is there a method to invoke that would enable this behavior? The docs seem to indicate it happens automatically now but the demo seems to prove otherwise. Is attachViewportTo needed, and if so, what is the syntax when using document.body?
Yes, thanks that works. Could have sworn the windows used to do this internally, but since the code you suggested works it doesn’t much matter. Appreciate the help…
One suggestion that might help others: think about adding the code snippet you just posted into the full size window sample on your site. That way, users will see immediately how this is done if they want the dhtmlx window to resize with the parent…
. I have to refresh IE webpage to get w1 maximized.
Is there any way i can get w1 maximized every time instead refresh?
Here is my code (this is straight from the sample report dhtmlx.com/docs/products/dhtmlx … wport.html
\5.0.2_Pro\samples\dhtmlxWindows/02_viewports/04_keep_window_in_viewport.html)
I just added red color border around dhtmlxWindows
changed width and height of w1 and called maximize function on it.
added onResizeFinish event and but it does not get fired when dhtmlxWindows resizes.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.