Permalink
Browse files

minor

  • Loading branch information...
timbertson committed Sep 15, 2011
1 parent 34e98ba commit d504854b05cc463b11a63ed2716b8e5c259252c2
Showing with 2 additions and 3 deletions.
  1. +2 −3 megazine.sjs
View
@@ -161,10 +161,9 @@ App.prototype.processTweet = function(tweet) {
};
App.prototype.showArticle = function(article) {
- //TODO: this is a bit hacky - inspecting the HTML output to see where articles
- // should be distributed
logging.info("Showing article: " + article, null, article);
- var columns = $('.col');
+ // get the column with the smallest displyed height
+ var columns = $('.col', this.$element);
var columnHeights = columns.map(function() { return $(this).height() }).get();
var minColumnHeight = Math.min.apply(Math, columnHeights);
var minColumnIndex = columnHeights.indexOf(minColumnHeight);

0 comments on commit d504854

Please sign in to comment.