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
65e04393
Commit
65e04393
authored
Sep 13, 2017
by
Alain Dumesny
Committed by
GitHub
Sep 13, 2017
Browse files
Merge branch 'develop' into 776_dist_remove
parents
83dc57d3
ff31cb7b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/gridstack.js
View file @
65e04393
...
@@ -1033,10 +1033,14 @@
...
@@ -1033,10 +1033,14 @@
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
var
cssMinHeight
=
parseInt
(
this
.
container
.
css
(
'
min-height
'
));
if
(
cssMinHeight
>
0
)
{
var
minHeight
=
(
cssMinHeight
+
this
.
opts
.
verticalMargin
)
/
(
this
.
cellHeight
()
+
this
.
opts
.
verticalMargin
);
if
(
height
<
minHeight
)
{
if
(
height
<
minHeight
)
{
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
)
{
return
;
return
;
...
...
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