Show/hide touch menu through display rather than visiblity, fix sending of non-integer screen sizes for small screens.

This commit is contained in:
Michael Jumper
2012-10-24 11:44:57 -07:00
parent 79ada6ffea
commit d0bedf6178
3 changed files with 5 additions and 5 deletions

View File

@@ -148,8 +148,8 @@
// Scale width/height to be at least 600x600
if (optimal_width < 600 || optimal_height < 600) {
var scale = Math.max(600 / optimal_width, 600 / optimal_height);
optimal_width *= scale;
optimal_height *= scale;
optimal_width = Math.floor(optimal_width * scale);
optimal_height = Math.floor(optimal_height * scale);
}
// Get entire query string, and pass to connect().