Skip to content

Commit a5d06d2

Browse files
committed
css fix: hide resize handle during dragging
1 parent d3dcb6b commit a5d06d2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/gridstack.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ $animation_speed: .3s !default;
8686
}
8787

8888
> .ui-resizable-se {
89-
display: inline-block;
9089
@include vendor(transform, rotate(-45deg));
9190
}
9291

92+
9393
> .ui-resizable-nw { cursor: nw-resize; width: 20px; height: 20px; left: 10px; top: 0; }
9494
> .ui-resizable-n { cursor: n-resize; height: 10px; top: 0; left: 25px; right: 25px; }
9595
> .ui-resizable-ne { cursor: ne-resize; width: 20px; height: 20px; right: 10px; top: 0; }
@@ -99,6 +99,12 @@ $animation_speed: .3s !default;
9999
> .ui-resizable-sw { cursor: sw-resize; width: 20px; height: 20px; left: 10px; bottom: 0; }
100100
> .ui-resizable-w { cursor: w-resize; width: 10px; left: $horizontal_padding / 2; top: 15px; bottom: 15px; }
101101

102+
&.ui-draggable-dragging {
103+
&> .ui-resizable-handle {
104+
display: none !important;
105+
}
106+
}
107+
102108
@for $i from 1 through $gridstack-columns {
103109
&[data-gs-width='#{$i}'] { width: (100% / $gridstack-columns) * $i; }
104110
&[data-gs-x='#{$i}'] { left: (100% / $gridstack-columns) * $i; }

0 commit comments

Comments
 (0)