Resizing windows when keepInViewport = true

Hi,

I’m able to reproduce this with the sample that comes with the library at dhtmlxWindows/samples/02_viewports/04_keepin.html (Need to set allowResizing() on the window though).

Tested with FF3.5.9 and Opera 10.60

Description of the bug:

  1. Move: Move the window to the right side of the screen.
  2. Resize: Resize the window using the left border, extend it to the left side of the screen.
  3. Resize: Resize the window using the left border. shrink it to the right side of the screen. (This should be the opposite action of step 2)

The observed result is that the window jumps to the left side of the screen.
The expected behaviour is that the window should stay put on the right side of the screen.

If keepInViewport is set to false, then everything works as expected.

We are using dhtmlxSuite_v25_pro_91111.

Hi,

we have fixed the bug. Please try using attached file instead of the original.
dhtmlxwindows.zip (18.9 KB)

Hi,

Thank you for your prompt reply.
The new version of “dhtmlxwindows.js” did fix the resizing problem. However when using the new version, two additional deviations seems to have appeared:

  1. The order of the buttons has changed. The “close” button is now the first button.

  2. When closing a window by clicking on the “close” button, it looks as if the window is maximized, then removed from the viewport. At least the viewport “flickers” when a window is closed in this manner.

Hi,

we are going to release the new version (2.6) this week. All these problems will be fixed in it.

Let me know if the fixes are very urgent.