Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 110403a

Browse files
committed
# Conflicts: # doc/CHANGES.md
2 parents c3299d9 + e4e66cd commit 110403a

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,18 @@ For 4-column grid it should be:
216216

217217
and so on.
218218

219-
Here is a SASS code snipped which can make life easier (Thanks to @ascendantofrain, [#81](https://github.com/gridstack/gridstack.js/issues/81)):
219+
Here is a SASS code snippet which can make life easier (Thanks to @ascendantofrain, [#81](https://github.com/gridstack/gridstack.js/issues/81) and @StefanM98, [#868](https://github.com/gridstack/gridstack.js/issues/868)):
220220

221221
```sass
222-
.grid-stack-item {
222+
.grid-stack > .grid-stack-item {
223223
224224
$gridstack-columns: 12;
225225
226226
@for $i from 1 through $gridstack-columns {
227227
&[data-gs-width='#{$i}'] { width: (100% / $gridstack-columns) * $i; }
228228
&[data-gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; }
229-
&.grid-stack-item[data-gs-min-width='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; }
230-
&.grid-stack-item[data-gs-max-width='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; }
229+
&[data-gs-min-width='#{$i}'] { min-width: (100% / $gridstack-columns) * $i; }
230+
&[data-gs-max-width='#{$i}'] { max-width: (100% / $gridstack-columns) * $i; }
231231
}
232232
}
233233
```

doc/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Change log
2929
- widget x and y are now ints (thanks [@DonnchaC](https://github.com/donnchac))
3030
- allow all droppable options (thanks [@vigor-vlad](https://github.com/vigor-vlad))
3131
- properly track mouse position in `getCellFromPixel` (thanks [@aletorrado](https://github.com/aletorrado))
32+
- remove instance of `!important` (thanks [@krilllind](https://github.com/krilllind))
3233
- scroll when moving widget up or down out of viewport ([#827](https://github.com/troolee/gridstack.js/issues/827))
3334

3435
## v0.3.0 (2017-04-21)

src/gridstack.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,14 +1020,14 @@
10201020
if (typeof maxHeight == 'undefined') {
10211021
maxHeight = this._styles._max;
10221022
}
1023-
if (this._styles._max !== 0 && maxHeight <= this._styles._max) { // Keep this._styles._max increasing
1024-
return ;
1025-
}
10261023
this._initStyles();
10271024
this._updateContainerHeight();
10281025
if (!this.opts.cellHeight) { // The rest will be handled by CSS
10291026
return ;
10301027
}
1028+
if (this._styles._max !== 0 && maxHeight <= this._styles._max) { // Keep this._styles._max increasing
1029+
return ;
1030+
}
10311031

10321032
if (!this.opts.verticalMargin || this.opts.cellHeightUnit === this.opts.verticalMarginUnit) {
10331033
getHeight = function(nbRows, nbMargins) {

src/gridstack.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $animation_speed: .3s !default;
5050
right: $horizontal_padding / 2;
5151
bottom: 0;
5252
width: auto;
53-
z-index: 0 !important;
53+
z-index: 0;
5454
overflow-x: hidden;
5555
overflow-y: auto;
5656
}

0 commit comments

Comments
 (0)