From 1487bc502e55ac75827616176964691c090ea717 Mon Sep 17 00:00:00 2001 From: Alok Ranjan Date: Fri, 25 Aug 2023 18:17:55 +0530 Subject: [PATCH] ELEMENTS-1584 Fix image centering in nuxeo-image-viewer after closing sidebar --- ui/viewers/nuxeo-image-viewer.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/viewers/nuxeo-image-viewer.js b/ui/viewers/nuxeo-image-viewer.js index 4f1245790..09d4b080f 100644 --- a/ui/viewers/nuxeo-image-viewer.js +++ b/ui/viewers/nuxeo-image-viewer.js @@ -148,6 +148,15 @@ import '../nuxeo-icons.js'; max-width: 100%; max-height: 100%; } + + .cropper-container { + width: 100% !important; + } + + .cropper-canvas, + .cropper-canvas > img { + width: 100% !important; + }
@@ -212,7 +221,7 @@ import '../nuxeo-icons.js'; checkCrossOrigin: false, checkOrientation: false, dragMode: 'move', - responsive: false, + responsive: true, restore: false, toggleDragModeOnDblclick: false, viewMode: 1,