Skip to content

Releases: gridstack/gridstack.js

v4.0.3

29 Mar 04:09
42f0d06
Compare
Choose a tag to compare
  • fix #1693 load after init() broken in 4.x
  • fix #1687 drag between 2 grids with row / maxRow broken in 4.x
  • fix #1676 drag edge case in/out single grid without acceptWidgets fix broken in 4.x

v4.0.2

28 Mar 04:20
9927e2a
Compare
Choose a tag to compare
  • fix #1679 Resizable: {handles:'w/sw'} work again in 4.x
  • fix #1658 enableMove(T/F) not working correctly
  • fix helper: myFunction now working for H5 case for dragInOptions & setupDragIn()
  • fix prevent addGrid() from creating nested div grid if container already is a '.grid-stack' div

v4.0.1

20 Mar 17:40
e094ff9
Compare
Choose a tag to compare
  • fix #1669 JQ resize broken
  • fix #1661 serialization of nested grid

v4.0.0

20 Mar 06:22
60d66c7
Compare
Choose a tag to compare
  • fix #149 #1094 #1605 #1534 re-write of the collision code - fixing 6 years old most requested request
  1. 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.
  2. Dragging up and down now behave the same (used to require push WAY down past to swap/append). Also much more efficient collision code.
  3. 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.
  • fix #393 #1612 #1578 re-write of the drag in/out code - fixing 5 years old bug
  1. we now remove item when cursor leaves (acceptWidgets case using dropout event) or shape is outside (re-using same method) and re-insert on cursor enter (since we only get dropover event). Should not be possible to have 2 placeholders which confuses the grids.
  2. 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.
  3. 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 resizes cellHeight:'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

03 Feb 06:24
0d40a18
Compare
Choose a tag to compare
  • 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

26 Jan 03:50
2839cdd
Compare
Choose a tag to compare
  • 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 plain mousemove & mobile touchmove 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

23 Jan 17:39
77a2e63
Compare
Choose a tag to compare
  • 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

12 Jan 02:24
5a717ea
Compare
Choose a tag to compare
  • fix 1557 no-drop cursor on windows when dragging within a default grid (no external drag in)
  • fix 1541 Safari H5 delay when dropping items

v3.1.3

03 Jan 02:56
efcda59
Compare
Choose a tag to compare
  • 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

08 Dec 02:13
7014975
Compare
Choose a tag to compare

(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)