@ Override protected void onLoad ( ) { super . onLoad ( ) ; // these styles need to be the same for the box and shadow so // that we can measure properly matchStyles ( "display" ) ; matchStyles ( "fontSize" ) ; matchStyles ( "fontFamily" ) ; matchStyles ( "fontWeight" ) ; matchStyles ( "lineHeight" ) ; matchStyles ( "paddingTop" ) ; matchStyles ( "paddingRight" ) ; matchStyles ( "paddingBottom" ) ; matchStyles ( "paddingLeft" ) ; adjustSize ( ) ; }
Matches the styles and adjusts the size . This needs to be called after the input is added to the DOM so we do it in onLoad .