Skip to content

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

optimizing the layouting algoritm

uggrock2bce3820b149
diff --git a/data/js/core.api.js b/data/js/core.api.js
index c87069bef..fed88907c 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -311,8 +311,12 @@ define(function(require, exports, module) {
var twoColumn = (fullWidth >= 660 && fullWidth < 1024);
layoutContainer.options.east.spacing_open = 1;
+// $("#toggleFullWidthButton").hide();
- $("#toggleFullWidthButton").hide();
+ if(isFullWidth) {
+ oneColumn = true;
+// $("#toggleFullWidthButton").show();
+ }
if(oneColumn) {
$("#closeLeftPanel").show();
@@ -332,6 +336,9 @@ define(function(require, exports, module) {
}
}
}
+ if(!isFullWidth) {
+ $("#toggleFullWidthButton").hide();
+ }
} else if(twoColumn) {
//$("#closeLeftPanel").show();
if(isPortret) {