Skip to content

Commit a9934ce

Browse files
author
Ives van Hoorne
committed
1 parent e8654f2 commit a9934ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Content/Preview/FlyingContainer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class FlyingContainer extends React.Component<Props, State> {
160160
if (changePositionY) {
161161
const newPosY = previewY - deltaY;
162162

163-
update.y = newPosY;
163+
update.y = Math.max(-48, newPosY);
164164
}
165165

166166
if (changePositionX) {
@@ -221,6 +221,7 @@ class FlyingContainer extends React.Component<Props, State> {
221221
x: previewWindow.x,
222222
y: previewWindow.y,
223223
}}
224+
bounds={{ top: -48 }}
224225
position={
225226
this.state.dragging
226227
? undefined

0 commit comments

Comments
 (0)