This is working great for input items–thank you!!!
I also need to re-position a label. Following the same principle, I came up with this which is working:
dhtmlXForm.prototype.items.label.setInputPosition = function(item, data) {
var t = item.childNodes[0];
if (data.labelLeft != null) t.style.left = parseInt(data.labelLeft)+"px";
if (data.labelTop != null) t.style.top = parseInt(data.labelTop)+"px";
t = null;
};
I needed to move a few items and then show a group of items is the same location. This makes it possible.
On a side node, I have been creating a handful of complex forms which require absolute positioning. I’ve used Designer and then came up with something pretty cool you might want to see. It’s an object with a bunch of methods which at the end produce the form’s [ ] structure. I’ll email it