TagSpaces is an offline, open source, document manager with tagging support
adjusting the position of the context menus
uggrock1fd6c502b87b
diff --git a/data/assets/general.css b/data/assets/general.cssindex c894dd965..9e4e84fbf 100644--- a/data/assets/general.css+++ b/data/assets/general.css@@ -562,7 +562,8 @@ input a.resetFilter {}#perspectiveSwitcher {- right: 2px;+ top: 7px;+ right: 7px;min-width: 200px;}diff --git a/data/ext/perspectiveList/toolbar.html b/data/ext/perspectiveList/toolbar.htmlindex f9760cf22..13f49c7b4 100644--- a/data/ext/perspectiveList/toolbar.html+++ b/data/ext/perspectiveList/toolbar.html@@ -58,9 +58,6 @@<button class="btn" data-dismiss="modal" data-i18n="[title]ns.perspectiveList:reloadDirectoryTooltip" id="{{id}}ReloadFolderButton"><i class="fa fa-refresh fa-lg"></i> <span data-i18n="ns.perspectiveList:reloadDirectory"></span></button>- <!--button class="btn" data-dismiss="modal" data-i18n="[title]ns.perspectiveList:toggleThumbnailsTooltip" data-toggle="button" id="{{id}}ShowTmbButton">- <i class="fa fa-picture-o fa-lg"></i> <span data-i18n="ns.perspectiveList:toggleThumbnailsTooltip"></span>- </button--><button class="btn" data-dismiss="modal" data-i18n="[title]ns.perspectiveList:exportToCSVTooltip" id="{{id}}Export2CSVButton"><i class="fa fa-share fa-lg"></i> <span data-i18n="ns.perspectiveList:exportToCSV"></span></button>diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 79d693a0e..1880901eb 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -701,7 +701,7 @@ define(function(require, exports, module) {}var showContextMenu = function(menuId, sourceObject) {var leftPos = sourceObject.offset().left;- var topPos = sourceObject.offset().top + sourceObject.height() + 5;+ var topPos = sourceObject.offset().top;if (sourceObject.offset().top + sourceObject.height() + $(menuId).height() > window.innerHeight) {topPos = window.innerHeight - $(menuId).height();leftPos = sourceObject.offset().left + 15;