private void applyElementSize ( Element element , int width , int height , boolean addCoordSize ) { if ( width >= 0 && height >= 0 ) { if ( addCoordSize ) { Dom . setElementAttribute ( element , "coordsize" , width + " " + height ) ; } Dom . setStyleAttribute ( element , "width" , width + "px" ) ; Dom . setStyleAttribute ( element , "height" , height + "px" ) ; } }
Apply a size on an element .