nl_tokens: / * END FIX FOR 4 . 1 Calculates the position of the clear button based on the textfield . inputEl element
pl_tokens: function ( textField ) { var positions = textField . inputEl . getBox ( true , true ) ; var top = positions . y ; var right = positions . x ; if ( this . fieldHasScrollBar ( ) ) { right += Ext . getScrollBarWidth ( ) ; } if ( this . textField . triggerWrap ) { right += this . textField . getTriggerWidth ( ) ; // 2011-11-30 Ing. Leonardo D'Onofrio leonardo_donofrio at hotmail.com if ( ! this . textField . getTriggerWidth ( ) ) { Ext . Function . defer ( this . repositionClearButton , 100 , this ) ; } // end Ing. Leonardo D'Onofrio } // 2012-03-08 Ing. Leonardo D'Onofrio leonardo_donofrio at hotmail.com if ( textField . inputEl . hasCls ( 'ux-icon-combo-input' ) ) { right -= 20 ; // Fix for IconCombo } // end Ing. Leonardo D'Onofrio return { right : <mask> , top : top } ; }