mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-09 16:01:30 +08:00
Remove minimum zoom size
This commit is contained in:
parent
7e699ce648
commit
f6ecea42cf
1 changed files with 0 additions and 4 deletions
|
|
@ -289,10 +289,6 @@ var FilePreviewModal = (function() {
|
||||||
} else {
|
} else {
|
||||||
newWidth = parseInt(initWidth, 10) * 0.9;
|
newWidth = parseInt(initWidth, 10) * 0.9;
|
||||||
newHeight = parseInt(initHeight, 10) * 0.9;
|
newHeight = parseInt(initHeight, 10) * 0.9;
|
||||||
if (parseInt(imageEditorWindow.dataset.minWidth, 10) > parseInt(newWidth, 10)) {
|
|
||||||
newWidth = parseInt(imageEditorWindow.dataset.minWidth, 10);
|
|
||||||
newHeight = parseInt(imageEditorWindow.dataset.minHeight, 10);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
imageEditorWindow.style.width = newWidth + 'px';
|
imageEditorWindow.style.width = newWidth + 'px';
|
||||||
imageEditorWindow.style.height = newHeight + 'px';
|
imageEditorWindow.style.height = newHeight + 'px';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue