Commit graph

171 commits

Author SHA1 Message Date
Pavel Reznikov 92d7e51d68 fix #373 2016-03-02 01:09:10 -08:00
d 398dccb7a9 Add default values for verticalMarginUnit and cellHeightUnit, update readme to have verticalMargin info, and several more unit tests. 2016-03-01 15:15:32 -05:00
Pavel Reznikov 0273bb66d8 Update dist. (+14 squashed commits)
Squashed commits:
[50607a9] build dist
[ff0c00b] Allow negative numbers to be passed to parseHeight function test case fix
[3ecc1ca] Allow negative numbers to be passed to parseHeight function test case
[d20f670] Allow negative numbers to be passed to parseHeight function fix
[0816163] Allow negative numbers to be passed to parseHeight function
[aa18c63] rebuild dist
[601b5d5] setGridWidth api documentation udpdate
[c309856] Add a parameter to setGridWidth method to allow not to propagate resizing to widgets.
[ea442d1] drag between grids
[50ce614] jqueryui + requirejs note
[3d8a8e1] drag between grids demo
[446dade] drag from sidebar/between grids
[e31d50e] check if element setup before detach
[67274f8] trash zone is accepting only widgets
2016-03-01 11:22:39 -05:00
d 0b944927ab More tests (including all obsolete options), clean up unnecessary code. 2016-03-01 11:14:26 -05:00
d eedf6d5716 Fix _is_one_column_mode -> _isOneColumnMode and add in obsolete unit checks for all gs, non-GSEngine code. 2016-02-25 16:48:57 -05:00
d b9c916554e Added parseInt(x, 10) to cellWidth and added some unit tests. 2016-02-25 15:48:25 -05:00
d d521ef5330 Bit safer. 2016-02-24 13:22:36 -05:00
d 19f41a72a8 Fix one bug and another pops up. This fixes issue where passing detachNode=false to removeWidget would still cause it to be removed from the DOM. 2016-02-24 13:20:04 -05:00
d 735ffa2129 Fixes bug when calling destroy with detachGrid=false. Thanks @jhpedemonte. 2016-02-24 11:05:54 -05:00
Pavel Reznikov 9d12e25a02 improve removable behaviour 2016-02-23 20:13:11 -08:00
d 2abfbb37bf #54 - Added added and removed events. 2016-02-23 11:46:24 -05:00
Pavel Reznikov a33f046fa6 fix in isAreaEmpty and _notify 2016-02-22 22:48:20 -08:00
Pavel Reznikov 6cd5084a23 fix isAreaEmpty 2016-02-22 22:21:13 -08:00
Pavel Reznikov 707916d6da fix parseHeight 2016-02-22 20:43:44 -08:00
Pavel Reznikov 23cd18804a remove unused code 2016-02-22 20:43:29 -08:00
Kevin Dietrich 934863e285 Merge remote-tracking branch 'troolee/master' into tests
# Conflicts:
#	package.json
2016-02-22 19:09:50 +01:00
d 5f5a83d01b Added several optional parameters to addWidget: minWidth, maxWidth, minHeight, maxHeight, and id. 2016-02-22 12:21:32 -05:00
d 78803147c6 #237 Add optional useOffset parameter to getCellFromPixel. 2016-02-22 10:56:49 -05:00
d de26b00f85 #216 Add detachGrid parameter to destroy. Updated docs for remove and removeAll param. 2016-02-22 09:33:09 -05:00
Pavel Reznikov 2075d2556b add removable option 2016-02-21 20:49:18 -08:00
Pavel Reznikov a5d06d2b1f css fix: hide resize handle during dragging 2016-02-21 20:44:00 -08:00
Dylan Weiss 9b455d6018 #227 Add setGridWidth(gridWidth) method. Attempts to intelligently change existing widgets' x-coordinate and width to map to new width. 2016-02-20 11:37:34 -05:00
Pavel Reznikov c34777b2a0 hack for meteor support 2016-02-20 01:14:04 -08:00
Pavel Reznikov 3a5c675e6f ‘auto’ value for cellHeight 2016-02-20 00:55:33 -08:00
Pavel Reznikov 4b13d407b0 rtl support 2016-02-20 00:11:06 -08:00
Pavel Reznikov 76f90a21f3 clean scss 2016-02-20 00:07:54 -08:00
Pavel Reznikov cea9174bd3 move parseHeight to Utils 2016-02-19 23:37:25 -08:00
Pavel Reznikov 781776e408 remove dependency from FontAwesome 2016-02-19 23:23:27 -08:00
Pavel Reznikov 7c586417fb fix #267 2016-02-19 18:17:46 -08:00
Pavel Reznikov c43a12ac06 code style 2016-02-19 16:45:30 -08:00
Pavel Reznikov 47218bd7a6 fix jshit warnings 2016-02-19 14:31:24 -08:00
Kevin Dietrich d3d00d563f Set engine for testing purposes 2016-02-19 19:59:58 +01:00
Pavel Reznikov b8bd181970 Viewport Size fix 2016-02-19 09:33:29 -08:00
d ff15070de0 Fix #331. Add options to disable move and resize independently without impacting jquery-ui options. Update enableMove and enableResize methods to update these options on-the-fly. 2016-02-19 11:18:09 -05:00
d 03ca75717c Merge branch 'master' into bugfix/staticGrid
# Conflicts:
#	dist/gridstack.min.map
2016-02-18 16:52:57 -05:00
d ca800454f1 #220. Add enableMove and enableResize. Fix staticGrid. 2016-02-18 16:48:16 -05:00
Pavel Reznikov 6e0aab4780 Revert "Viewport Size" 2016-02-18 09:49:33 -08:00
Stuardo -StR- Rodríguez b979982cc5 Viewport
- do not parseInt but parseFloat
2016-02-18 11:33:49 -05:00
Stuardo -StR- Rodríguez 331eef1f57 Viewport Size
Allow viewport height units. Allow to use float as size.
example:  1.5em;  33vh;
2016-02-18 11:15:58 -05:00
Pavel Reznikov 02f0eba64d add maxWidth/maxHeight 2016-02-17 19:03:21 -08:00
Pavel Reznikov e146e0d943 replace tab with spaces 2016-02-17 18:40:47 -08:00
d 7bcbeba849 Added previous PR. 2016-02-17 16:07:40 -05:00
d 64de4684e3 Added obsoletion code for deprecated methods and options. Added jscs settings and ensured code passed. Ensured code passed jshint. 2016-02-17 15:46:48 -05:00
Kevin Dietrich 1e75be19ed Preserve license comments in dist 2016-02-15 20:37:07 +01:00
Kevin Dietrich f4e8b9e03e Development of 0.2.5 started 2016-02-15 20:31:19 +01:00
Pavel Reznikov 1edda7f24c v0.2.4 2016-02-15 09:31:43 -08:00
Dylan Weiss cfb0dfc345 Fixed names of options. 2016-02-13 20:48:49 -05:00
Dylan Weiss 8b1f180135 Include resizable, draggable opts in all listeners for resizable, draggable, respectively. Fixes issue particularly when passing handle to draggable - was listening to everything on el rather than this.opts.draggable.handle. 2016-02-13 17:26:02 -05:00
Pavel Reznikov 90424c0d8a Merge pull request #264 from kdietrich/make-widget
Adding make_widget functionality
2016-02-10 23:15:48 -08:00
Pavel Reznikov d11eaba9b8 placeholder_text option 2016-02-10 19:14:44 -08:00