[ticket/243] Remove msie check as it's not supported anymore and fix call
B3P-243
This commit is contained in:
@@ -10,21 +10,12 @@
|
||||
var scrollbarWidth = 0;
|
||||
$.getScrollbarWidth = function() {
|
||||
if ( !scrollbarWidth ) {
|
||||
if ( $.browser.msie ) {
|
||||
var $textarea1 = $('<textarea cols="10" rows="2"></textarea>')
|
||||
.css({ position: 'absolute', top: -1000, left: -1000 }).appendTo('body'),
|
||||
$textarea2 = $('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>')
|
||||
.css({ position: 'absolute', top: -1000, left: -1000 }).appendTo('body');
|
||||
scrollbarWidth = $textarea1.width() - $textarea2.width();
|
||||
$textarea1.add($textarea2).remove();
|
||||
} else {
|
||||
var $div = $('<div />')
|
||||
.css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: -1000 })
|
||||
.prependTo('body').append('<div />').find('div')
|
||||
.css({ width: '100%', height: 200 });
|
||||
scrollbarWidth = 100 - $div.width();
|
||||
$div.parent().remove();
|
||||
}
|
||||
var $div = $('<div />')
|
||||
.css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: -1000 })
|
||||
.prependTo('body').append('<div />').find('div')
|
||||
.css({ width: '100%', height: 200 });
|
||||
scrollbarWidth = 100 - $div.width();
|
||||
$div.parent().remove();
|
||||
}
|
||||
return scrollbarWidth;
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@ phpbb.b3p_fix_right_column_margin = function() {
|
||||
var $portal_left = $('#portal-left');
|
||||
var $portal_center = $('#portal-center');
|
||||
|
||||
if (width <= 895) {
|
||||
if (width <= (895 - $.getScrollbarWidth())) {
|
||||
// Get height of left and center column
|
||||
var right_height = $portal_right.height();
|
||||
var left_height = $portal_left.height();
|
||||
|
||||
Reference in New Issue
Block a user