Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Added support for portrait mode
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmayer-dev committed Jan 16, 2022
1 parent bcd9855 commit c6748c1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var longPress = false;
var supportButtonReleaseLongPress = false;

var apiVersion = 20;
var version = "2.1.0";
var version = "2.1.1";

function back() {
disconnect();
Expand Down Expand Up @@ -380,12 +380,6 @@ function autoSize() {
var width = window.innerWidth, height = window.innerHeight - offset;
var buttonSizeX, buttonSizeY;

if (rowsCount > columnsCount)
{
rowsCount = (divs.length / rows.length);
columnsCount = rows.length;

}
buttonSizeX = width / columnsCount;
buttonSizeY = height / rowsCount;
buttonSize = Math.min(buttonSizeX, buttonSizeY);
Expand Down

0 comments on commit c6748c1

Please sign in to comment.