Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Prevent opening it the files is already in full width mode

Ilianb57e747c0a87
diff --git a/data/js/core.api.js b/data/js/core.api.js
index 7d0e6d856..7f137903c 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -220,6 +220,9 @@ define(function(require, exports, module) {
function openFileViewer() {
tsCoreUI.hideAllDropDownMenus();
+ if(isFullWidth) {
+ return;
+ }
var fullWidth = window.innerWidth;
var halfWidth = Math.round(fullWidth/2);
// In portret mode
@@ -247,6 +250,7 @@ define(function(require, exports, module) {
} else {
layoutContainer.close("east");
}
+ isFullWidth = false;
}
var isFullWidth = false;