Skip to content

Commit

Permalink
fixed viewport height adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
bkellenb committed Nov 18, 2021
1 parent e9b37dd commit 58da5b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constants/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
2020-21 Benjamin Kellenberger
'''

AIDE_VERSION = '2.1.211116'
AIDE_VERSION = '2.1.211118'


MIN_FILESERVER_VERSION = '2.0.210225' # minimum required version for FileServer, due to recent changes
Expand Down
2 changes: 1 addition & 1 deletion modules/LabelUI/static/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ $(document).ready(function() {
// resize canvas to fit height (so that as little scrolling as possible is needed)
var aspectRatio = canvas.width / canvas.height;

var height = Math.max(window.minImageWidth/aspectRatio, gallery.height() / numRows - numCols*24); // subtract 24 pixels height for each image (footer)
var height = Math.max(window.minImageWidth/aspectRatio, gallery.height() / numRows - numCols*48); // subtract 48 pixels height for each image (footer)
var width = Math.max(window.minImageWidth, gallery.width() / numCols);
if(height > width/aspectRatio) {
height = width/aspectRatio;
Expand Down

0 comments on commit 58da5b7

Please sign in to comment.