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

Skip to content

Commit a531105

Browse files
committed
Update NE,NW resize handle positioning css
1 parent 271efc5 commit a531105

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gridstack.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ $animation_speed: .3s !default;
7676
}
7777

7878
> .ui-resizable-ne {
79-
@include vendor(transform, translate(0, 10px) rotate(45deg));
79+
@include vendor(transform, rotate(45deg));
8080
}
8181
> .ui-resizable-sw {
8282
@include vendor(transform, rotate(45deg));
8383
}
8484

8585
> .ui-resizable-nw {
86-
@include vendor(transform, translate(0, 10px) rotate(-45deg));
86+
@include vendor(transform, rotate(-45deg));
8787
}
8888
> .ui-resizable-se {
8989
@include vendor(transform, rotate(-45deg));

src/gridstack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,10 +1615,10 @@ export class GridStack {
16151615
// resize handles offset (to match margin)
16161616
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-n`, `top: ${top};`);
16171617
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-s`, `bottom: ${bottom}`);
1618-
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-ne`, `right: ${right}`);
1618+
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-ne`, `right: ${right}; top: ${top}`);
16191619
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-e`, `right: ${right}`);
16201620
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-se`, `right: ${right}; bottom: ${bottom}`);
1621-
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-nw`, `left: ${left}`);
1621+
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-nw`, `left: ${left}; top: ${top}`);
16221622
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-w`, `left: ${left}`);
16231623
Utils.addCSSRule(this._styles, `${prefix} > .ui-resizable-sw`, `left: ${left}; bottom: ${bottom}`);
16241624
}

0 commit comments

Comments
 (0)