Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELEMENTS-1584: fix image centering in nuxeo-image-viewer after closing… #798

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion ui/viewers/nuxeo-image-viewer.js
Expand Up @@ -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;
}
</style>

<div id="canvas">
Expand Down Expand Up @@ -212,7 +221,7 @@ import '../nuxeo-icons.js';
checkCrossOrigin: false,
checkOrientation: false,
dragMode: 'move',
responsive: false,
responsive: true,
restore: false,
toggleDragModeOnDblclick: false,
viewMode: 1,
Expand Down