EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: James on September 13, 2018, 01:52:49 AM



Title: combgrid's panel first time has horizontal scroll bar
Post by: James on September 13, 2018, 01:52:49 AM
http://jsfiddle.net/wtvnb3gj/5/

fist time show it's panel, it has horizontal scroll bar, and vertical scroll bar is not display as it should be.
do not choice any item, and close the panel , then open it again, it dispaly right, how to make it dispaly ok at the first time?


Title: Re: combgrid's panel first time has horizontal scroll bar
Post by: James on September 13, 2018, 02:00:12 AM
I want to upload an gif(35KB) but server says:The upload folder is full. Please try a smaller file and/or contact an administrator.


Title: Re: combgrid's panel first time has horizontal scroll bar
Post by: jarry on September 13, 2018, 07:47:38 AM
After create the combogrid, please set the drop down panel with ‘overflow:hidden’ style.
Code:
        $('#groupicon').combogrid({
            required: true,
            editable: false,
            fitColumns: true,
            idField: 'iconname',
            textField: 'iconname',
            data: data,
            pagination: true,
            toolbar: '#toolbar',
            columns: [[
                    {field: 'id', hidden: true},
                    {field: 'iconname', title: 'ICON', width: 100, align: 'center'}
                ]]
        });
        $('#groupicon').combogrid('panel').css('overflow','hidden')