nl_tokens: Checks if the field we are attached to currently has a scrollbar
pl_tokens: function ( ) { if ( ! this . isTextArea ) { return <mask> ; } var inputEl = this . textField . inputEl ; var overflowY = inputEl . getStyle ( 'overflow-y' ) ; if ( overflowY == 'hidden' || overflowY == 'visible' ) { return false ; } if ( overflowY == 'scroll' ) { return true ; } //noinspection RedundantIfStatementJS if ( inputEl . dom . scrollHeight <= inputEl . dom . clientHeight ) { return false ; } return true ; }