Skip to content

Commit 52d2f71

Browse files
authored
Merge pull request #2479 from adumesny/master
scale demo cleanup
2 parents b559a6f + 7efa3d1 commit 52d2f71

File tree

4 files changed

+11
-67
lines changed

4 files changed

+11
-67
lines changed

demo/index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,25 @@ <h1>Demos</h1>
1616
<li><a href="knockout.html">Knockout.js</a></li>
1717
<li><a href="mobile.html">Mobile touch</a></li>
1818
<li><a href="nested.html">Nested grids</a></li>
19-
<li><a href="nested_constraint.html">Nested Constraint grids</a></li>
2019
<li><a href="nested_advanced.html">Nested Advanced grids</a></li>
21-
<li><a href="offset.html">Offset parent</a></li>
22-
<li><a href="react-hooks.html">ReactJS (Hooks)</a></li>
20+
<li><a href="nested_constraint.html">Nested Constraint grids</a></li>
2321
<li><a href="react-hooks-controlled-multiple.html">ReactJS (Hooks), multiple grid, controlled (NOT Ideal)</a></li>
22+
<li><a href="react-hooks.html">ReactJS (Hooks)</a></li>
2423
<li><a href="react.html">ReactJS</a></li>
2524
<li><a href="responsive.html">Responsive</a></li>
2625
<li><a href="right-to-left(rtl).html">Right-To-Left (RTL)</a></li>
2726
<li><a href="serialization.html">Serialization</a></li>
28-
<li><a href="scale.html">Scale</a></li>
2927
<li><a href="sizeToContent.html">Size To Content</a></li>
3028
<li><a href="static.html">Static</a></li>
3129
<li><a href="title_drag.html">Title drag</a></li>
30+
<li><a href="transform.html">Transform (scale+offset)</a></li>
3231
<li><a href="two.html">Two grids</a></li>
3332
<li><a href="two_vertical.html">Two grids Vertical</a></li>
3433
<li><a href="vue2js.html">Vue2.js</a></li>
3534
<li><a href="vue3js.html">Vue3.js</a></li>
36-
<li><a href="vue3js_v-for.html">Vue3 with v-for</a></li>
37-
<li><a href="vue3js_dynamic-render_grid-item.html">Vue3: Gridstack Controls Vue Rendering Grid Item</a></li>
3835
<li><a href="vue3js_dynamic-render_grid-item-content.html">Vue3: Gridstack Controls Vue Rendering Grid Item Content</a></li>
36+
<li><a href="vue3js_dynamic-render_grid-item.html">Vue3: Gridstack Controls Vue Rendering Grid Item</a></li>
37+
<li><a href="vue3js_v-for.html">Vue3 with v-for</a></li>
3938
<li><a href="web-comp.html">Web Component</a></li>
4039
<li><a href="web1.html">Website demo 1</a></li>
4140
<li><a href="web2.html">Website demo 2</a></li>

demo/offset.html

Lines changed: 0 additions & 59 deletions
This file was deleted.

demo/scale.html renamed to demo/transform.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
<body>
1414
<div class="container-fluid">
1515
<h1>Transform Parent demo</h1>
16-
<p>example where the grid parent has a scale (0.5, 0.5)</p>
16+
<p>example where the grid parent has a translate(50px, 100px) scale(0.5, 0.5) </p>
1717
<div>
1818
<a class="btn btn-primary" onClick="addNewWidget()" href="#">Add Widget</a>
1919
<a class="btn btn-primary" onClick="zoomIn()" href="#">Zoom in</a>
2020
<a class="btn btn-primary" onClick="zoomOut()" href="#">Zoom out</a>
2121
</div>
2222
<br><br>
23-
<div style="transform: scale(var(--global-scale), var(--global-scale)); transform-origin: 0 0;">
23+
<div style="transform: translate(50px, 100px) scale(var(--global-scale), var(--global-scale)); transform-origin: 0 0;">
2424
<div class="grid-stack"></div>
2525
</div>
2626
</div>

doc/CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8+
- [9.2.2-dev (TBD)](#922-dev-tbd)
89
- [9.2.2 (2023-09-27)](#922-2023-09-27)
910
- [9.2.1 (2023-09-20)](#921-2023-09-20)
1011
- [9.2.0 (2023-09-10)](#920-2023-09-10)
@@ -100,6 +101,9 @@ Change log
100101

101102
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
102103

104+
## 9.2.2-dev (TBD)
105+
* fix [#1275](https://github.com/gridstack/gridstack.js/issues/1275) div scale support - Thank you [VincentMolinie](https://github.com/VincentMolinie) for implementing this
106+
103107
## 9.2.2 (2023-09-27)
104108
* fix - sub-grid styles now look for immediate correct parent, not any depth above.
105109
* fix [#2469](https://github.com/gridstack/gridstack.js/issues/2469) "Invalid height" error CSS minHeight

0 commit comments

Comments
 (0)