Skip to content

Commit 277d8a7

Browse files
committed
Release v0.2.0
1 parent 21f53a7 commit 277d8a7

8 files changed

+1001
-253
lines changed

CHANGELOG.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<a name="v0.2.0"></a>
2+
## v0.2.0 (2013-10-26)
3+
4+
5+
#### Bug Fixes
6+
7+
* fixes and improvements in widget-resizing. ([ae02b32b](http://github.com/ducksboard/gridster.js/commit/ae02b32b9210c6328f4acc339e215ae50c134f77), closes [#32](http://github.com/ducksboard/gridster.js/issues/32))
8+
* **gridster:**
9+
* the preview holder should not always use `li` ([1ade74e2](http://github.com/ducksboard/gridster.js/commit/1ade74e239485b07e870fca44e1eafb3ff1ae283))
10+
* overlapping widget problem ([31fd8d6b](http://github.com/ducksboard/gridster.js/commit/31fd8d6ba893e4c39b91ba30d429e37f3da30b24))
11+
* Orphan preview holder when dragging is interrupted ([1b13617d](http://github.com/ducksboard/gridster.js/commit/1b13617df2ce53235bdf3a1e38f1555f529663c3))
12+
* remove_widget Returns the instance of the Gridster Class ([5bfbc5c0](http://github.com/ducksboard/gridster.js/commit/5bfbc5c0b5ab49c2a7c651327ce2e0f30f594985))
13+
14+
15+
#### Features
16+
17+
* **draggable:**
18+
* new config option to move or not the dragged element ([4d9b2a84](http://github.com/ducksboard/gridster.js/commit/4d9b2a84f11cb7cb2ddad51c158d92b82e7bc447))
19+
* CSS selectors support in `ignore_dragging` config opt ([0f956249](http://github.com/ducksboard/gridster.js/commit/0f95624925be97aee7a8450707e04e887e4dac58))
20+
* pass previous position to the drag callback ([055cc0e4](http://github.com/ducksboard/gridster.js/commit/055cc0e4f6f9de5721986515656ac894855f9e02))
21+
* Don't start new drag if previous one hasn't stopped ([91ca6572](http://github.com/ducksboard/gridster.js/commit/91ca65721c2eb32b5dec82cdc5e5e7f81dac329e))
22+
* pass useful data to all drag callbacks ([8dda2410](http://github.com/ducksboard/gridster.js/commit/8dda2410f300592706985c05141ca6b702977dc0))
23+
* **gridster:** drag-and-drop widget resizing ([e1924053](http://github.com/ducksboard/gridster.js/commit/e19240532de0bad35ffe6e5fc63934819390adc5))
24+
* **utils:** add delay helper to utils ([faa6c5db](http://github.com/ducksboard/gridster.js/commit/faa6c5db0002feccf681e9f919ed583eef152773))
25+

dist/jquery.gridster.css

+63-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! gridster.js - v0.1.0 - 2013-06-14
1+
/*! gridster.js - v0.2.0 - 2013-10-26
22
* http://gridster.net/
33
* Copyright (c) 2013 ducksboard; Licensed MIT */
44

@@ -15,19 +15,20 @@
1515
transition: height .4s;
1616
}
1717

18-
.gridster .gs_w{
18+
.gridster .gs-w {
1919
z-index: 2;
2020
position: absolute;
2121
}
2222

23-
.ready .gs_w:not(.preview-holder) {
23+
.ready .gs-w:not(.preview-holder) {
2424
-webkit-transition: opacity .3s, left .3s, top .3s;
2525
-moz-transition: opacity .3s, left .3s, top .3s;
2626
-o-transition: opacity .3s, left .3s, top .3s;
2727
transition: opacity .3s, left .3s, top .3s;
2828
}
2929

30-
.ready .gs_w:not(.preview-holder) {
30+
.ready .gs-w:not(.preview-holder),
31+
.ready .resize-preview-holder {
3132
-webkit-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
3233
-moz-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
3334
-o-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
@@ -50,15 +51,71 @@
5051
transition: left .3s, top .3s!important;
5152
}
5253

53-
.gridster .dragging {
54+
.gridster .dragging,
55+
.gridster .resizing {
5456
z-index: 10!important;
5557
-webkit-transition: all 0s !important;
5658
-moz-transition: all 0s !important;
5759
-o-transition: all 0s !important;
5860
transition: all 0s !important;
5961
}
6062

63+
64+
.gs-resize-handle {
65+
position: absolute;
66+
z-index: 1;
67+
}
68+
69+
.gs-resize-handle-both {
70+
width: 20px;
71+
height: 20px;
72+
bottom: -8px;
73+
right: -8px;
74+
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=');
75+
background-position: top left;
76+
background-repeat: no-repeat;
77+
cursor: se-resize;
78+
z-index: 20;
79+
}
80+
81+
.gs-resize-handle-x {
82+
top: 0;
83+
bottom: 13px;
84+
right: -5px;
85+
width: 10px;
86+
cursor: e-resize;
87+
}
88+
89+
.gs-resize-handle-y {
90+
left: 0;
91+
right: 13px;
92+
bottom: -5px;
93+
height: 10px;
94+
cursor: s-resize;
95+
}
96+
97+
.gs-w:hover .gs-resize-handle,
98+
.resizing .gs-resize-handle {
99+
opacity: 1;
100+
}
101+
102+
.gs-resize-handle,
103+
.gs-w.dragging .gs-resize-handle {
104+
opacity: 0;
105+
}
106+
107+
.gs-resize-disabled .gs-resize-handle {
108+
display: none!important;
109+
}
110+
111+
[data-max-sizex="1"] .gs-resize-handle-x,
112+
[data-max-sizey="1"] .gs-resize-handle-y,
113+
[data-max-sizey="1"][data-max-sizex="1"] .gs-resize-handle {
114+
display: none !important;
115+
}
116+
61117
/* Uncomment this if you set helper : "clone" in draggable options */
62118
/*.gridster .player {
63119
opacity:0;
64-
}*/
120+
}
121+
*/

0 commit comments

Comments
 (0)