diff --git a/r2/r2/public/static/js/multi.js b/r2/r2/public/static/js/multi.js index 0f9b9d52e..0f70009b2 100644 --- a/r2/r2/public/static/js/multi.js +++ b/r2/r2/public/static/js/multi.js @@ -608,6 +608,13 @@ r.multi.ListingChooser = Backbone.View.extend({ initialize: function() { this.$el.addClass('initialized') + + // HACK: fudge page heights for long lists of multis / short pages + var thisHeight = this.$('.contents').height(), + bodyHeight = $('body').height() + if (thisHeight > bodyHeight) { + $('body').css('padding-bottom', thisHeight - bodyHeight + 100) + } }, createClick: function(ev) { diff --git a/r2/r2/templates/listingchooser.html b/r2/r2/templates/listingchooser.html index 9e297a0a5..ef4412d62 100644 --- a/r2/r2/templates/listingchooser.html +++ b/r2/r2/templates/listingchooser.html @@ -40,32 +40,34 @@
- +
+ -

${_('multireddits')}

- %if thing.show_samples: -
-

${_('new! create sets of subreddits to view together.')}

-

${_('for starters, try one of these:')}

-
    - ${section_items(thing.sections['sample'])} -
-
- %endif - +

${_('multireddits')}

+ %if thing.show_samples: +
+

${_('new! create sets of subreddits to view together.')}

+

${_('for starters, try one of these:')}

+
    + ${section_items(thing.sections['sample'])} +
+
+ %endif + - + +