vendredi 27 novembre 2015

hello how to set minWidth and maxWidth to anchor popup, I tried MatchesAnchorWidth = "false" but it set width according to Data

public function filterData():void
    {

        if(!this.focusManager || this.focusManager.getFocus() != inputTxt)
            return;

        if(!popUp)
            return;

        if(isFilterFunctionEnabled)
            collection.filterFunction = filterFunction;

        var customSort:Sort = new Sort();
        customSort.compareFunction = sortFunction;
        collection.sort = customSort;
        collection.refresh();

        if((text == "" || collection.length == 0) && !_forceOpen)
        {
            popUp.displayPopUp = false;
        }
        else
        {
            popUp.displayPopUp = true;
            if(requireSelection)
                list.selectedIndex = 0;
            else
                list.selectedIndex = -1;

            callLater(setListProperties);
            list.height = Math.min(maxRows, collection.length) * 22 + 15;

            if(anchorWidth)
            {
                popUp.popUpWidthMatchesAnchorWidth = false;
                popUp.explicitWidth = anchorWidth;
            }
            else
                popUp.width = inputTxt.width;
        }
    }

this filter function i have use Anchor property popUpWidthMatchesAnchorWidth to set Dynamic width but i want to set minWidth and maxWidth to popup because of popup goes outside to component.

Aucun commentaire:

Enregistrer un commentaire