Sets element position.
nullobj.setPosition(left, top);
left (number) - element left position in pixels
top (number) - element top position in pixels
obj.setPosition(100, 200);
The parameters for this method should be numeric values which are interpreted as pixels. This method does not allow using % or em values. For other units just call setStyle() method directly.
This method also adds position:absolute to the element styles and left/top values behave according to CSS absolute positioning rules.
setSize() method