Browse Source

Updated logic of mobile/tablet sizes & scrollbars.

dev
Roman Axelrod 1 year ago
parent
commit
74f4b11ad6
  1. 3
      layouts/scripts/toolbar/data-options/DesignPreview.jsx

3
layouts/scripts/toolbar/data-options/DesignPreview.jsx

@ -130,7 +130,8 @@ export function DesignPreview({previewOption = {widthDimension: 0}}) {
return 0; return 0;
} }
const scrollbarOffset = 7; // const scrollbarOffset = 7; Looks like browser scrollbar is not included in the width calculation anymore.
const scrollbarOffset = 0;
return window.innerWidth / 2 - previewOption.widthDimension / 2 - scrollbarOffset; return window.innerWidth / 2 - previewOption.widthDimension / 2 - scrollbarOffset;
} }

Loading…
Cancel
Save