summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-09-30 11:12:32 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-09-30 11:12:32 -0400
commitf1e3f41e6d38df799ef2f32b2a8fe0c208c38756 (patch)
tree0d4e942366cbf79655da048772fef76a88159907
parentf8ccd2c91f2bdc83626c30c0edcaf47ee50f2f30 (diff)
make sure we don't go below a min height for row, no matter what for thumbs
-rw-r--r--www/js/EventCtrl.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index ca16c5e5..bf213a63 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -111,10 +111,12 @@ angular.module('zmApp.controllers')
event.Event.thumbHeight = th.h;
if (ld.eventViewThumbsSize == 'large') {
- rowHeight = th.h + 144;
+ // 167 is the minimum size w need to not cut off buttons in large mode
+ rowHeight = Math.max(th.h + 144, 167);
}
else {
- rowHeight = th.h + 82;
+ // 156 is the minimum size w need to not cut off buttons in large mode
+ rowHeight = Math.max (th.h + 82, 156);
}
}
}
@@ -122,6 +124,7 @@ angular.module('zmApp.controllers')
return (rowHeight + scrubHeight);
}
else {
+ console.log (rowHeight);
return (rowHeight);
}
};
@@ -3448,7 +3451,7 @@ angular.module('zmApp.controllers')
}
} else { // xsmall
- maxThumbHeight = 280;
+ maxThumbHeight = 150;
maxThumbWidth = 0.2* $rootScope.devWidth;
if (landscape) {
// go till 50% of width in small landscape, but restricted to useable row height