Permalink
Browse files

trying to optimize picture preview for mobile

  • Loading branch information...
1 parent e2357f5 commit a020d61c632fe5eaf5c3e8d8b178374e4d235c05 @sukhada committed Mar 15, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 reddit.js
View
@@ -198,6 +198,7 @@ function fixMargins() {
window.onload = function() {
$("#img").css("max-width", $(window).width());
+ $("#img").css("max-width", $(window).height());
console.log($(window).width());
if (localStorage.getItem('subreddits')) {
if (localStorage.getItem('lastItems')) {

0 comments on commit a020d61

Please sign in to comment.