Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IzaacAyelin committed Jun 17, 2024
1 parent 8d61889 commit a1ed287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
isPreviewMode,
isSiteMode,
optionsMap,
windowWrapper,
} from 'pro-gallery-lib';
import { ItemsHelper } from 'pro-layouts';
import GalleryView from './galleryView';
Expand Down Expand Up @@ -135,6 +136,7 @@ export class GalleryContainer extends React.Component {
}

componentDidMount() {
windowWrapper.stopUsingMock();
const { body, documentElement: html } = document;
const viewportHeight = window.innerHeight;
const height = Math.max(
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export { NEW_PRESETS } from './core/presets/presets';
export { getLayoutName } from './core/presets/presets';
export { isInPreset } from './core/presets/presets';

export { default as window } from './common/window/windowWrapper';
export { default as window, windowWrapper } from './common/window/windowWrapper';
export { default as utils } from './common/utils';

export { viewModeWrapper } from './common/window/viewModeWrapper';
Expand Down

0 comments on commit a1ed287

Please sign in to comment.