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

Skip to content

Commit f7e682b

Browse files
authored
Merge pull request #2929 from adumesny/gh-pages
web v11.3.0
2 parents 6ac6a4b + 5029cd0 commit f7e682b

File tree

10 files changed

+51
-11
lines changed

10 files changed

+51
-11
lines changed

demo/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ <h1>Demos</h1>
2525
<li><a href="react.html">ReactJS</a></li>
2626
<li><a href="responsive.html">Responsive: by column size</a></li>
2727
<li><a href="responsive_break.html">Responsive: using breakpoints</a></li>
28+
<li><a href="responsive_none.html">Responsive: using layout:'none'</a></li>
2829
<li><a href="right-to-left(rtl).html">Right-To-Left (RTL)</a></li>
2930
<li><a href="serialization.html">Serialization</a></li>
3031
<li><a href="sizeToContent.html">Size To Content</a></li>

demo/responsive_none.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<title>Responsive layout:'none'</title>
8+
9+
<link rel="stylesheet" href="demo.css"/>
10+
<link rel="stylesheet" href="../node_modules/gridstack/dist/gridstack-extra.css"/>
11+
<script src="../node_modules/gridstack/dist/gridstack-all.js"></script>
12+
13+
</head>
14+
<body>
15+
<div class="container-fluid">
16+
<h1>Responsive layout:'none'</h1>
17+
<p>show loading a fixed (<b>layout:'none'</b>) but still responsive design (150px columns) with items w:2-4</p>
18+
<p>showing how it will not change the layout unless it doesn't fit. loading into small view remembers the full layout (column:6)</p>
19+
<div class="grid-stack"></div>
20+
</div>
21+
<script type="text/javascript">
22+
let children = [ {}, {}, {}];
23+
children.forEach((w, i) => {
24+
w.x=i, w.y=i, // comment out to have autoPosition:true which behaves differently
25+
w.w=i+2, w.content = `${i} w:${w.w}`})
26+
27+
GridStack.init({
28+
children,
29+
column: 6,
30+
cellHeight: 100,
31+
columnOpts: {
32+
columnWidth: 150,
33+
columnMax: 12,
34+
layout: 'none',
35+
},
36+
});
37+
</script>
38+
</body>
39+
</html>

node_modules/gridstack/dist/es5/gridstack-all.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/gridstack/dist/es5/gridstack-all.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/gridstack/dist/es5/gridstack-poly.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/gridstack/dist/gridstack-all.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/gridstack/dist/gridstack-all.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/gridstack/dist/gridstack.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"homepage": "http://gridstackjs.com",
1818
"dependencies": {
19-
"gridstack": "11.2.0"
19+
"gridstack": "11.3.0"
2020
},
2121
"devDependencies": {
2222
"prettier": "3.2.5"

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
gridstack@11.2.0:
6-
version "11.2.0"
7-
resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-11.2.0.tgz#8977a6632c521260f064ef171b92c7a8df4f58a9"
8-
integrity sha512-ajwUzd9spR8NXDxfJotHWq9WOYoDOV9o6UJR3ksevNz8cvXNxDtI9H/lC+RN6ijM2DexureLlsG0RpYjBZiOtg==
5+
gridstack@11.3.0:
6+
version "11.3.0"
7+
resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-11.3.0.tgz#b110c66bafc64c920fc54933e2c9df4f7b2cfffe"
8+
integrity sha512-Z0eRovKcZTRTs3zetJwjO6CNwrgIy845WfOeZGk8ybpeMCE8fMA8tScyKU72Y2M6uGHkjgwnjflglvPiv+RcBQ==
99

1010
1111
version "3.2.5"

0 commit comments

Comments
 (0)