Permalink
Browse files

State icon increased in size.

  • Loading branch information...
1 parent 3009a22 commit 6035f9bc09f5315b3ef85c15a1c52f73ae1d2f44 @exhuma committed Apr 8, 2013
Showing with 79 additions and 6 deletions.
  1. +9 −0 js/app.js
  2. +66 −2 lost_tracker/static/js/lost_tracker.js
  3. +2 −0 lost_tracker/static/style.css
  4. +2 −4 lost_tracker/templates/station.html
View
@@ -7,6 +7,7 @@ goog.require('goog.dom.forms');
goog.require('goog.events');
goog.require('goog.events.EventType');
goog.require('goog.net.XhrIo');
+goog.require('goog.style');
/**
@@ -66,6 +67,14 @@ lost_tracker.app.attachEvents = function(stationId) {
evt.preventDefault();
});
});
+
+ goog.array.forEach(goog.dom.getElementsByTagNameAndClass('img', 'icon'),
+ function(element) {
+ var sibling = goog.dom.getNextElementSibling(element);
+ var siblingSize = goog.style.getSize(sibling);
+ goog.style.setHeight(element, siblingSize.height);
+ goog.style.setWidth(element, siblingSize.width);
+ });
};
Oops, something went wrong.

0 comments on commit 6035f9b

Please sign in to comment.