Merge pull request #108 from Ephemera/manage-space-for-FF

Fix Firefox's issue related to #106
This commit is contained in:
Buu Nguyen 2014-06-08 10:15:18 -07:00
commit bf4aed1b34
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ GitHub.prototype.updateLayout = function(sidebarVisible, sidebarWidth) {
var containers = $(GH_CONTAINERS)
, marginLeft
if (containers.length === 3) {
marginLeft = parseInt($('.container').last().css('margin-left'))
marginLeft = parseInt($('body > .container').css('margin-left')) || ($('body').width() - $('body > .container').width()) / 2
containers.css('margin-left', (sidebarVisible && marginLeft <= sidebarWidth + SIDEBAR_SPACE)
? sidebarWidth + SIDEBAR_SPACE
: marginLeft)