[ticket/641] Use CSS for aligning portal columns

B3P-641
This commit is contained in:
Marc Alexander
2015-07-21 14:48:07 +02:00
parent a1748116f6
commit c61971e7eb
3 changed files with 24 additions and 7 deletions

View File

@@ -42,21 +42,16 @@ phpbb.b3p_fix_right_column_margin = function() {
} else {
$portal_right.css(marginLeft, - ($portal_right.width() + 1));
}
$portal_right.css('margin-top', $portal_center.height() + 'px');
$portal_left.css('margin-top', $portal_center.height() + 'px');
} else {
$portal_right.css(marginLeft, 0);
$portal_right.css('margin-top', 0);
}
} else {
$portal_right.css('margin-top', '0px');
if (!$portal_center.length && $portal_left.length) {
$portal_right.css(marginLeft, 0);
} else {
$portal_right.css(marginLeft, -portal_right_width);
}
$portal_right.width(portal_right_width);
$portal_left.css('margin-top', 0);
phpbb.b3pFixLeftColumnMargin();
}
};