public static void setLeft ( Element element , int left ) { if ( Dom . isIE ( ) ) { // Limitation in IE8... while ( left > 1000000 ) { left -= 1000000 ; } while ( left < - 1000000 ) { left += 1000000 ; } } Dom . setStyleAttribute ( element , "left" , left + "px" ) ; }
Apply the left style attribute on the given element .