Xantomen / GamesInputPal

http://xantomen.com/gamesinputpal/
GNU General Public License v3.0
2 stars 0 forks source link

Add Line wrapping or width expansion in Dropdown Menus based on the inputs inside (Ex: Search Options doesn't scale with your input amount) #29

Closed Xantomen closed 8 years ago

Xantomen commented 8 years ago

Added this logic:

$('.search_row_text').keypress(function(){

            var desired_width = ((($(this).val().length) + 1) * 7) + 6;

            this.style.width = desired_width + 'px';
        });

And min-width where necessary, to not get a very small input text field when erasing characters:

.search_row_text {

        min-width:175px;
    }