Browse Source

Fix media viewer padding

master
morethanwords 3 years ago
parent
commit
65431310eb
  1. 3
      src/components/appMediaViewer.ts

3
src/components/appMediaViewer.ts

@ -1012,8 +1012,7 @@ class AppMediaViewerBase<ContentAdditionType extends string, ButtonsAdditionType
if(windowH < 1000000 && !mediaSizes.isMobile) { if(windowH < 1000000 && !mediaSizes.isMobile) {
padding = 32 + 120; padding = 32 + 120;
} }
// const maxHeight = windowH - 120 - padding; const maxHeight = windowH - 120 - padding;
const maxHeight = windowH - 120;
let thumbPromise: Promise<any> = Promise.resolve(); let thumbPromise: Promise<any> = Promise.resolve();
const size = appPhotosManager.setAttachmentSize(media, container, maxWidth, maxHeight, mediaSizes.isMobile ? false : true).photoSize; const size = appPhotosManager.setAttachmentSize(media, container, maxWidth, maxHeight, mediaSizes.isMobile ? false : true).photoSize;
if(useContainerAsTarget) { if(useContainerAsTarget) {

Loading…
Cancel
Save