Window v4 problem at x,y

I have problem with dhxwin v4.
x,y position doesn’t effect at all when I am writing code like this:

var win1 = myWins.createWindow({
id: “w1”,
x: 20,
y: 30,
width: 320,
height: 240

but OK when using var win1 = myWins.createWindow(“w1”, 20, 20, 320, 240);

Is it bug or any error in my code?


Please, look at this sample: … imple.html

  1. there are “left” and “top” parameters instead of “x” and “y”
  2. if you are goin to init via json, you can use the whole object at once
  3. if you need to use name win1 - just declare it:
    var win1 = dhxWins.window(“w1”);

It will work

Thank you very much bro,

I don’t know if json must using left,top because I look dhxwins document at
using x,y instead left,top

We will fix docs ass soon as possible, sorry