mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
Work around IE7's lack of display:inline-block support within the flair selector.
This commit is contained in:
@@ -93,6 +93,8 @@ $(function() {
|
||||
$(col).width(col_width);
|
||||
|
||||
if (num_cols > 1) {
|
||||
$(col).css('float', 'left'); // force IE7 to lay out properly
|
||||
|
||||
var num_short_cols = num_cols * height - length;
|
||||
|
||||
for (var i = 1; i < num_cols; i++) {
|
||||
@@ -104,7 +106,9 @@ $(function() {
|
||||
length -= h;
|
||||
var tail = $(col).children().slice(start).remove();
|
||||
$(tail).width(col_width);
|
||||
$(col).after($("<ul>").append(tail));
|
||||
$(col).after($("<ul>")
|
||||
.css('float', 'left') // force IE7 to lay out properly
|
||||
.append(tail));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user