Permalink
Browse files

Remove consideration for 30 px bottom bar

  • Loading branch information...
bhamrick committed Aug 6, 2016
1 parent 5160b78 commit 838debe6e2cc9034fed862804c6458da7939183d
Showing with 3 additions and 3 deletions.
  1. +3 −3 multitwitch/static/js/multitwitch.js
@@ -50,10 +50,10 @@ function optimize_size(n) {
var num_rows = Math.ceil(n / per_row);
var max_width = Math.floor(width / per_row) - 4;
var max_height = Math.floor(height / num_rows) - 4;
if (max_width * 9/16 + 30 < max_height) {
max_height = max_width * 9/16 + 30;
if (max_width * 9/16 < max_height) {
max_height = max_width * 9/16;
} else {
max_width = (max_height - 30) * 16/9;
max_width = (max_height) * 16/9;
}
if (max_width > best_width) {
best_width = max_width;

0 comments on commit 838debe

Please sign in to comment.