Updated logic of mobile/tablet sizes & scrollbars.
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -130,7 +130,7 @@ export function DesignPreview({previewOption = {widthDimension: 0}}) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// const scrollbarOffset = 7; Looks like browser scrollbar is not included in the width calculation anymore.
|
// const scrollbarOffset = 7; // Looks like browser scrollbar is not included in the width calculation anymore.
|
||||||
const scrollbarOffset = 0;
|
const scrollbarOffset = 0;
|
||||||
return window.innerWidth / 2 - previewOption.widthDimension / 2 - scrollbarOffset;
|
return window.innerWidth / 2 - previewOption.widthDimension / 2 - scrollbarOffset;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user