|
18 | 18 | flex-grow: 1;
|
19 | 19 | }
|
20 | 20 | .row {
|
21 |
| - display:flex; |
22 |
| - width: 100%; |
| 21 | + display:flex; |
| 22 | + width: 100%; |
23 | 23 | }
|
24 | 24 | .showDistance {
|
25 |
| - border-top-width: 130px; |
26 |
| - border-bottom-width: 130px; |
27 |
| - border-color: gray; |
28 |
| - border-style: solid; |
29 |
| - height: 600px; |
30 |
| - width: 50px; |
31 |
| - box-sizing: border-box; |
| 25 | + border-top-width: 130px; |
| 26 | + border-bottom-width: 130px; |
| 27 | + border-color: gray; |
| 28 | + border-style: solid; |
| 29 | + height: 600px; |
| 30 | + width: 50px; |
| 31 | + box-sizing: border-box; |
32 | 32 | }
|
33 | 33 | </style>
|
34 | 34 |
|
|
38 | 38 | <div class="row">
|
39 | 39 | <div class="showDistance"></div>
|
40 | 40 | <div class="willScroll">
|
41 |
| - <div class="grid-stack"></div> |
42 |
| - </div> |
| 41 | + <div class="grid-stack"></div> |
| 42 | + </div> |
43 | 43 | </div>
|
44 | 44 |
|
45 | 45 | <script type="text/javascript">
|
46 | 46 | let grid = GridStack.init({cellHeight: 130});
|
47 | 47 | let items = [
|
48 |
| - {x: 0, y: 0, w: 2, h: 2, content: "resize-me - check scrolling starts only when in height of gray area, and you can scroll back up as well."}, |
49 |
| - {x: 3, y: 0, w: 2, h: 2, content: "this is here to have next item positioned way down"}, |
50 |
| - {x: 3, y: 2, w: 3, h: 2, content: "resize me - scroll will start immediately, but should not be extremely fast"}, |
51 |
| - {x: 6, y: 0, w: 2, h: 8, content: "this is here to have a scroll bar from the beginning"}, |
52 |
| - ]; |
| 48 | + {x: 0, y: 0, w: 2, h: 2, content: "resize-me - check scrolling starts only when in height of gray area, and you can scroll back up as well."}, |
| 49 | + {x: 3, y: 0, w: 2, h: 2, content: "this is here to have next item positioned way down"}, |
| 50 | + {x: 3, y: 2, w: 3, h: 2, content: "resize me - scroll will start immediately, but should not be extremely fast"}, |
| 51 | + {x: 6, y: 0, w: 2, h: 8, content: "this is here to have a scroll bar from the beginning"}, |
| 52 | + ]; |
53 | 53 | grid.load(items);
|
54 | 54 | </script>
|
55 | 55 | </body>
|
|
0 commit comments