Releases: gridstack/gridstack.js
Releases · gridstack/gridstack.js
v4.0.3
v4.0.2
v4.0.1
v4.0.0
- fix #149 #1094 #1605 #1534 re-write of the collision code - fixing 6 years old most requested request
- you can now swap items of the same size (vertical/horizontal) when grid is full, and is the default in
float:false
(top gravity) as it feels more natural. Could add Alt key for swap vs push behavior later. - Dragging up and down now behave the same (used to require push WAY down past to swap/append). Also much more efficient collision code.
- handle mid point of dragged over items (>50%) rather than just a new row/column and check for the most covered item when multiple collide.
- we now remove item when cursor leaves (
acceptWidgets
case usingdropout
event) or shape is outside (re-using same method) and re-insert on cursor enter (since we only getdropover
event). Should not be possible to have 2 placeholders which confuses the grids. - major re-write and cleanup of the drag in/out. Vars have been renamed and fully documented as I couldn't understand the legacy buggy code.
- removed any over trash delay feedback as I don't see the point and could introduce race conditions.
- fix 1617 FireFox DOM order issue. Thanks @marcel-necker
- fix changing column #
column(n)
now resizescellHeight:'auto'
to keep square - add 1616
drag | resize
events while dragging. Thanks @MrCorba - add 1637
GridStack.setupDragIn()
so user can update external draggable after the grid has been created
v3.3.0
- big re-write on how
cellHeight()
works. you can now call it at any time (not just grid init options) including switching to 'auto' or other modes on the fly. - fix
cellHeight:auto
now keeps cell square as window resizes (regressing from 2.x TS conversion).Utils.throttle()
works better too (guaranteed to be called last event) - new
cellHeight:initial
which makes the cell squares initially, but doesn't change as windows resizes (better performance) - new grid option
cellHeightThrottle
(100ms) to control throttle of auto sizing triggers - fix 1600 height too small with
cellHeight:auto
loading in 1 column. Now detect we load at 1 column and size accordingly (default 'auto' could make big 700x700 cells, so explicit px might still be wanted) - fix 1538 loading nested into small size and sizing back up
- fix 1604 nested grid resizing fix
- fix 1599 H5 resize from left side can move item right
v3.2.0
- fix 1413 website & lib works on mobile. We now compile the latest v1.0.8
jquery.ui.touch-punch
into the JQ version (only 2k) so mobile devices (android, iphone, ipad, ms surface, etc...) are supported out of the box.
HTML5 version will require re-write to plainmousemove
& mobiletouchmove
instead of drag events in a future release. - small optimizations (create placeholder content on the fly, moved more DD code into draggable class)
v3.1.5
- fix 1572
column: N
option now sets CSS class so you don't have to - fix 1571 don't allow drop-in when grid is full
- fix 1570 easier to drag out/in from below
- fix 1579
cellHeight()
was not updating CSS correctly - fix 1581 H5 draggable by actual div handle rather than entire item (let content respond to drag as well)
v3.1.4
v3.1.3
- fix #1540 Safari H5 drag&drop now works (some issue remain #1550 and #1541)
- fix #1535 use
batchUpdate()
around grid init to make sure gs-y attributes are respected. - fix #1545
disableMove()
correctly prevents drag later (remove events and draggable attribute) - fix #1546 resize no longer delayed, which caused race conditions errors
- fix #1001 resizing near bottom/top needs to auto-scroll. thanks @hbcarlos!
v3.1.2
(fixed bundle size in 3.1.1)
- fix #1419 dragging into a fixed row grid works better (check if it will fit, else try to append, else won't insert)
possible BREAK (unlikely you use engine directly)
engine constructor takes Options struct rather than spelling arguments (easier to extend/use)
canBePlacedWithRespectToHeight()
->willItFit()
like grid method - fix #1330
maxW
does not work as intended with resizable handle"w"
- fix #1472 support all options for new dragged in widgets (read all
gs-xyz
attributes) - fix #1511 dragging any grid item content works
- fix #1438 web-component fixes & grid with 0 size initially. (edited)