Title: resizable drop-down panel for combo elements Post by: mzeddd on May 13, 2014, 12:40:26 AM Hi,
Sometimes I can see situation when text length for some items in combo elements is to big to fit panel size. Due to this fact horisontal scroll bar appears. I think would be good to have the following options to solve this issue: - Add new parameter maxPanelWidth (in addition to panelWidth) and let panel width to vary between panelWidth and maxPanelWidth. In this case by default width of panel will be equal to panelWidth. But in case if text is a little bigger than panel could fit then panel should be extanded "a little" to fit this text (but not more than maxPanelWidth) - Allow user to resize panel. i.e. change change panelWidth/panelHeight using mouse like we resize windows. In this case combo should of course remember new parameters. Title: Re: resizable drop-down panel for combo elements Post by: stworthy on May 14, 2014, 06:21:55 PM It is easy to make the drop-down panel resizable. Here is the extended method to achieve this functionality.
Code: $.extend($.fn.combo.methods,{ Usage example: Code: $('#c1').combobox('resizablePanel'); Title: Re: resizable drop-down panel for combo elements Post by: mzeddd on May 15, 2014, 05:24:13 AM Hi stworthy!
Thanks! Is it possible to turn it from method to option (true/false)? And make it available for everybody with next version? |