gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

Disabling Horizontal Resize only

Open ddanielbee opened this issue 11 years ago • 3 comments

Hi,

Is it possible to disable only horizontal resize ? I need to make a grid where height may vary, but width is always static.

ddanielbee avatar Nov 22 '15 01:11 ddanielbee

Wouldn't just enabling the south resizeable work

$('.grid-stack').gridstack({
    resizable: {
        handles: 's'
    }
});

Then you're only ever re-sizing the height, and your width will always be static

DoctaWorm avatar Nov 26 '15 00:11 DoctaWorm

Yes, that works. I am quite new to jQuery UI and missed that, thank you.

ddanielbee avatar Nov 26 '15 02:11 ddanielbee

No problem! I can relate.

DoctaWorm avatar Dec 02 '15 19:12 DoctaWorm