Skip to content

Commit b8eb38c

Browse files
committed
Fix for overlapping hover outline of widgets
1 parent 80371db commit b8eb38c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/Editor/DraggableBox.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const DraggableBox = function DraggableBox({
134134
}, [layoutData.height, layoutData.width, layoutData.left, layoutData.top, currentLayout]);
135135

136136
function scaleWidth(width, scaleValue) {
137-
let newWidth = width * scaleValue + 6;
137+
let newWidth = width * scaleValue;
138138

139139
if(currentLayout === 'desktop') return newWidth;
140140

@@ -145,7 +145,7 @@ export const DraggableBox = function DraggableBox({
145145
...currentLayoutOptions,
146146
left: currentLayoutOptions.left - diff
147147
});
148-
148+
149149
return width;
150150
}
151151

@@ -165,7 +165,7 @@ export const DraggableBox = function DraggableBox({
165165

166166
<Rnd
167167
style={{ ...style }}
168-
size={{ width: scaleWidth(currentLayoutOptions.width, scaleValue), height: currentLayoutOptions.height + 6}}
168+
size={{ width: scaleWidth(currentLayoutOptions.width, scaleValue) + 6, height: currentLayoutOptions.height + 6}}
169169
position={{ x: currentLayoutOptions ? currentLayoutOptions.left : 0, y: currentLayoutOptions ? currentLayoutOptions.top : 0 }}
170170
defaultSize={{}}
171171
className={`resizer ${mouseOver ? 'resizer-active' : ''}`}

0 commit comments

Comments
 (0)