private void applyAbsolutePosition ( Element element , Coordinate position ) { Dom . setStyleAttribute ( element , "position" , "absolute" ) ; Dom . setStyleAttribute ( element , "left" , ( int ) position . getX ( ) + "px" ) ; Dom . setStyleAttribute ( element , "top" , ( int ) position . getY ( ) + "px" ) ; }
Apply an absolute position on an element .