Skip to content

How to disable all autoResize features? #1540

Answered by ghiscoding
KaitamakiKalle asked this question in Q&A
Discussion options

You must be logged in to vote

autoResize is not a boolean but rather an object accepting other options, you'll want to use enableAutoResize instead. Also if you set a gridHeight and gridWidth (which I assume you will need without the auto-resize) then it disable the resize (e.g. live demo Example 1). TypeScript intellisense in VSCode should show the correct type.

You might want to try autoResize: { resizeDetection: 'container' } option that was added by another user, you may have better result.

I also found global-grid-options.js file and tried disabling it there but doesn't seem to work.

you should never change a file from the library itself, this will be overwritten every time you run npm install

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ghiscoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants