Xantomen/GamesInputPal

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

Closed this issue · 1 comments

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

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;
    }