gridstack / gridstack.js

Build interactive dashboards in minutes.
https://gridstackjs.com
MIT License
6.68k stars 1.28k forks source link

'R' can rotate fixed sized or width/height items #2694

Closed vela666 closed 3 months ago

vela666 commented 4 months ago

image

adumesny commented 4 months ago

Sorry you can't right now. Use an older build.curious why you need it off...you have to be dragging to have any effect.

vela666 commented 4 months ago

抱歉,您现在不能。请使用较旧的版本。好奇您为什么需要关闭它...您必须拖动它才能产生任何效果。

Because the w and h of the element are fixed, but now you can switch through the "r" on the keyboard. Will configuration items be added in the future?

adumesny commented 4 months ago

ok, so that's a bug I didn't think about... are you using canResize:false or setting minW=maxW=some number I suppose I should handle both (and also when grid is full and doesn't fit. this feature is a lot harder than it appears which is what I mentioned to the user who donated for it). no plans to fix it right away (unless you want to donate for it) and I wasn't planning to add flag to disable unless I hear otherwise.

adumesny commented 3 months ago

fixed in next release. don't forget to donate if you find this lib useful