Skip to content

Commit ba345f3

Browse files
committed
fix #2577 missing resize styles
1 parent c1e78db commit ba345f3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/CHANGES.md

Lines changed: 5 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+
- [10.0.1-dev (TBD)](#1001-dev-tbd)
89
- [10.0.1 (2023-12-10)](#1001-2023-12-10)
910
- [10.0.0 (2023-11-20)](#1000-2023-11-20)
1011
- [9.5.1 (2023-11-11)](#951-2023-11-11)
@@ -106,6 +107,10 @@ Change log
106107

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

110+
## 10.0.1-dev (TBD)
111+
* feat: [#2574](https://github.com/gridstack/gridstack.js/pull/2574) Allow cell height in cm and mm units
112+
* fix: [#2577](https://github.com/gridstack/gridstack.js/issues/2577) ui-resizable-s/-n style fix
113+
109114
## 10.0.1 (2023-12-10)
110115
* fix: [#2552](https://github.com/gridstack/gridstack.js/issues/2552) DOM init doesn't sizeToContent
111116
* fix: [#2561](https://github.com/gridstack/gridstack.js/pull/2561) issues with sizeToContent animation, cleanup, etc...

src/gridstack.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,8 @@ export class GridStack {
15611561
Utils.addCSSRule(this._styles, content, `top: ${top}; right: ${right}; bottom: ${bottom}; left: ${left};`);
15621562
Utils.addCSSRule(this._styles, placeholder, `top: ${top}; right: ${right}; bottom: ${bottom}; left: ${left};`);
15631563
// resize handles offset (to match margin)
1564+
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-n`, `top: ${top};`);
1565+
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-s`, `bottom: ${bottom}`);
15641566
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-ne`, `right: ${right}`);
15651567
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-e`, `right: ${right}`);
15661568
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-se`, `right: ${right}; bottom: ${bottom}`);

0 commit comments

Comments
 (0)