src/aria/widgets/form/MultiAutoComplete.js
function (input) {
            var ellipsisContainer = input.previousSibling, elementoffsetWidth = ellipsisContainer.offsetWidth, frameWidth = this._frame.innerWidth;
            // 10 is to consider margin and padding
            if (elementoffsetWidth >= (frameWidth - 10)) {
                ellipsisContainer.firstChild.className += " ellipsisClass";
                var elementWidth = frameWidth - ellipsisContainer.offsetLeft
                        - (ellipsisContainer.firstChild.offsetLeft + ellipsisContainer.lastChild.offsetWidth) * 2;
                ellipsisContainer.firstChild.style.maxWidth = elementWidth + "px";
            }

        }
function (input) {
            var ellipsisContainer = input.previousSibling, elementoffsetWidth = ellipsisContainer.offsetWidth, frameWidth = this._frame.innerWidth;
            // 10 is to consider margin and padding
            if (elementoffsetWidth >= (frameWidth - 10)) {
                ellipsisContainer.firstChild.className += " ellipsisClass";
                var elementWidth = frameWidth - ellipsisContainer.offsetLeft
                        - (ellipsisContainer.firstChild.offsetLeft + ellipsisContainer.lastChild.offsetWidth) * 2;
                ellipsisContainer.firstChild.style.maxWidth = elementWidth + "px";
            }

        }
function ( input ) { var ellipsisContainer = input . previousSibling , elementoffsetWidth = ellipsisContainer . offsetWidth , frameWidth = this . _frame . innerWidth ; // 10 is to consider margin and padding if ( elementoffsetWidth >= ( frameWidth - 10 ) ) { ellipsisContainer . firstChild . className += " ellipsisClass" ; var elementWidth = frameWidth - ellipsisContainer . offsetLeft - ( ellipsisContainer . firstChild . offsetLeft + ellipsisContainer . lastChild . offsetWidth ) * 2 ; ellipsisContainer . firstChild . style . maxWidth = elementWidth + "px" ; } }
Method to create ellipsis for an added Suggestion
@param {HTMLElement} input textInputField
@private
Method to create ellipsis for an added Suggestion