width = @elementToFit.width()
height = @elementToFit.height()
- availableWidth = width - workspace.outerWidth(true)
+ availableWidth = width - workspace.outerWidth(true) - 20
availableHeight = height - @$(@headerRegion.$el).outerHeight(true)
source.removeClass 'overflow'
var detailsEl = jQuery('.navigator-details'),
detailsWidth = jQuery(window).width() - detailsEl.offset().left -
- parseInt(detailsEl.css('margin-right'), 10),
+ parseInt(detailsEl.css('margin-right'), 10) - 20,
detailsHeight = jQuery(window).height() - detailsEl.offset().top -
parseInt(detailsEl.css('margin-bottom'), 10) - footerHeight;
detailsEl.width(detailsWidth).height(detailsHeight);