js/OverlayScrollbars.js
function updateAutoContentSizeChanged() {
                    if (_isSleeping)
                        return false;

                    var float;
                    var textareaValueLength = _isTextarea && _widthAutoCache && !_textareaAutoWrappingCache ? _targetElement.val().length : 0;
                    var setCSS = !_mutationObserversConnected && _widthAutoCache && !_isTextarea;
                    var viewportScrollSize = { };
                    var css = { };
                    var bodyMinSizeC;
                    var changed;
                    var viewportScrollSizeChanged;

                    //fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1439305, it only works with "clipAlways : true"
                    //it can work with "clipAlways : false" too, but we had to set the overflow of the viewportElement to hidden every time before measuring
                    if(_restrictedMeasuring) {
                        viewportScrollSize = {
                            x : _viewportElementNative[LEXICON.sW],
                            y : _viewportElementNative[LEXICON.sH]
                        }
                    }
                    if (setCSS) {
                        float = _contentElement.css(_strFloat);
                        css[_strFloat] = _isRTL ? _strRight : _strLeft;
                        css[_strWidth] = _strAuto;
                        _contentElement.css(css);
                    }
                    var contentElementScrollSize = {
                        w: getContentMeasureElement()[LEXICON.sW] + textareaValueLength,
                        h: getContentMeasureElement()[LEXICON.sH] + textareaValueLength
                    };
                    if (setCSS) {
                        css[_strFloat] = float;
                        css[_strWidth] = _strHundredPercent;
                        _contentElement.css(css);
                    }

                    bodyMinSizeC = bodyMinSizeChanged();
                    changed = checkCacheDouble(contentElementScrollSize, _contentElementScrollSizeChangeDetectedCache);
                    viewportScrollSizeChanged = checkCacheDouble(viewportScrollSize, _viewportScrollSizeCache, _strX, _strY);

                    _contentElementScrollSizeChangeDetectedCache = contentElementScrollSize;
                    _viewportScrollSizeCache = viewportScrollSize;

                    return changed || bodyMinSizeC || viewportScrollSizeChanged;
                }
function updateAutoContentSizeChanged() {
                    if (_isSleeping)
                        return false;

                    var float;
                    var textareaValueLength = _isTextarea && _widthAutoCache && !_textareaAutoWrappingCache ? _targetElement.val().length : 0;
                    var setCSS = !_mutationObserversConnected && _widthAutoCache && !_isTextarea;
                    var viewportScrollSize = { };
                    var css = { };
                    var bodyMinSizeC;
                    var changed;
                    var viewportScrollSizeChanged;

                    //fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1439305, it only works with "clipAlways : true"
                    //it can work with "clipAlways : false" too, but we had to set the overflow of the viewportElement to hidden every time before measuring
                    if(_restrictedMeasuring) {
                        viewportScrollSize = {
                            x : _viewportElementNative[LEXICON.sW],
                            y : _viewportElementNative[LEXICON.sH]
                        }
                    }
                    if (setCSS) {
                        float = _contentElement.css(_strFloat);
                        css[_strFloat] = _isRTL ? _strRight : _strLeft;
                        css[_strWidth] = _strAuto;
                        _contentElement.css(css);
                    }
                    var contentElementScrollSize = {
                        w: getContentMeasureElement()[LEXICON.sW] + textareaValueLength,
                        h: getContentMeasureElement()[LEXICON.sH] + textareaValueLength
                    };
                    if (setCSS) {
                        css[_strFloat] = float;
                        css[_strWidth] = _strHundredPercent;
                        _contentElement.css(css);
                    }

                    bodyMinSizeC = bodyMinSizeChanged();
                    changed = checkCacheDouble(contentElementScrollSize, _contentElementScrollSizeChangeDetectedCache);
                    viewportScrollSizeChanged = checkCacheDouble(viewportScrollSize, _viewportScrollSizeCache, _strX, _strY);

                    _contentElementScrollSizeChangeDetectedCache = contentElementScrollSize;
                    _viewportScrollSizeCache = viewportScrollSize;

                    return changed || bodyMinSizeC || viewportScrollSizeChanged;
                }
function updateAutoContentSizeChanged ( ) { if ( _isSleeping ) return false ; var float ; var textareaValueLength = _isTextarea && _widthAutoCache && ! _textareaAutoWrappingCache ? _targetElement . val ( ) . length : 0 ; var setCSS = ! _mutationObserversConnected && _widthAutoCache && ! _isTextarea ; var viewportScrollSize = { } ; var css = { } ; var bodyMinSizeC ; var changed ; var viewportScrollSizeChanged ; //fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1439305, it only works with "clipAlways : true" //it can work with "clipAlways : false" too, but we had to set the overflow of the viewportElement to hidden every time before measuring if ( _restrictedMeasuring ) { viewportScrollSize = { x : _viewportElementNative [ LEXICON . sW ] , y : _viewportElementNative [ LEXICON . sH ] } } if ( setCSS ) { float = _contentElement . css ( _strFloat ) ; css [ _strFloat ] = _isRTL ? _strRight : _strLeft ; css [ _strWidth ] = _strAuto ; _contentElement . css ( css ) ; } var contentElementScrollSize = { w : getContentMeasureElement ( ) [ LEXICON . sW ] + textareaValueLength , h : getContentMeasureElement ( ) [ LEXICON . sH ] + textareaValueLength } ; if ( setCSS ) { css [ _strFloat ] = float ; css [ _strWidth ] = _strHundredPercent ; _contentElement . css ( css ) ; } bodyMinSizeC = bodyMinSizeChanged ( ) ; changed = checkCacheDouble ( contentElementScrollSize , _contentElementScrollSizeChangeDetectedCache ) ; viewportScrollSizeChanged = checkCacheDouble ( viewportScrollSize , _viewportScrollSizeCache , _strX , _strY ) ; _contentElementScrollSizeChangeDetectedCache = contentElementScrollSize ; _viewportScrollSizeCache = viewportScrollSize ; return changed || bodyMinSizeC || viewportScrollSizeChanged ; }
Returns true if the content size was changed since the last time this method was called.
@returns {boolean} True if the content size was changed, false otherwise.
Returns true if the content size was changed since the last time this method was called .