private String getResizeJavaScript ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "$(window).bind(\'resizeEnd\',function(){" ) ; sb . append ( getDisplayCall ( ) ) ; sb . append ( "});" ) ; return sb . toString ( ) ; }
display call will be made only when resize event finished!