Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
open-source
gridstack.js
Commits
c2a6782c
Commit
c2a6782c
authored
Sep 13, 2017
by
Dylan Weiss
Browse files
Merge branch 'develop'
parents
a286851c
ff31cb7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
package.json
package.json
+2
-1
src/gridstack.js
src/gridstack.js
+7
-3
No files found.
package.json
View file @
c2a6782c
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
},
},
"scripts"
:
{
"scripts"
:
{
"build"
:
"grunt ; doctoc ./README.md ; doctoc ./doc/README.md ; doctoc ./doc/CHANGES.md"
,
"build"
:
"grunt ; doctoc ./README.md ; doctoc ./doc/README.md ; doctoc ./doc/CHANGES.md"
,
"test"
:
"grunt lint && karma start karma.conf.js"
"test"
:
"grunt lint && karma start karma.conf.js"
,
"lint"
:
"grunt lint"
},
},
"keywords"
:
[
"keywords"
:
[
"gridstack"
,
"gridstack"
,
...
...
src/gridstack.js
View file @
c2a6782c
...
@@ -1033,9 +1033,13 @@
...
@@ -1033,9 +1033,13 @@
return
;
return
;
}
}
var
height
=
this
.
grid
.
getGridHeight
();
var
height
=
this
.
grid
.
getGridHeight
();
var
minHeight
=
parseInt
(
this
.
container
.
css
(
'
min-height
'
))
/
this
.
cellHeight
();
// check for css min height. Each row is cellHeight + verticalMargin, until last one which has no margin below
if
(
height
<
minHeight
)
{
var
cssMinHeight
=
parseInt
(
this
.
container
.
css
(
'
min-height
'
));
height
=
minHeight
;
if
(
cssMinHeight
>
0
)
{
var
minHeight
=
(
cssMinHeight
+
this
.
opts
.
verticalMargin
)
/
(
this
.
cellHeight
()
+
this
.
opts
.
verticalMargin
);
if
(
height
<
minHeight
)
{
height
=
minHeight
;
}
}
}
this
.
container
.
attr
(
'
data-gs-current-height
'
,
height
);
this
.
container
.
attr
(
'
data-gs-current-height
'
,
height
);
if
(
!
this
.
opts
.
cellHeight
)
{
if
(
!
this
.
opts
.
cellHeight
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment