lib/js/PageView.js
function() {
      var t = this,
          box = t.getComponentArea();

      // Shift all components by the furthest left
      if (box.left) {
        t.$('.nm-pv-component').each(function() {
          var elem = $(this).find('.nm-cv'),
              left = (parseInt(elem.css('left'), 10)),
              model = t.componentViews[($(this).attr('id'))].model,
              css = _.clone(model.get('css')),
              parsedCss = $.parseStyleString(css['.nm-cv'] || '');

          // Set the left into the model & remove from the element style
          parsedCss.left = (left - box.left) + 'px';
          css['.nm-cv'] = $.makeStyleString(parsedCss);
          model.set({css: css});
          elem.css({left:''});
        });
      }
    }
function() {
      var t = this,
          box = t.getComponentArea();

      // Shift all components by the furthest left
      if (box.left) {
        t.$('.nm-pv-component').each(function() {
          var elem = $(this).find('.nm-cv'),
              left = (parseInt(elem.css('left'), 10)),
              model = t.componentViews[($(this).attr('id'))].model,
              css = _.clone(model.get('css')),
              parsedCss = $.parseStyleString(css['.nm-cv'] || '');

          // Set the left into the model & remove from the element style
          parsedCss.left = (left - box.left) + 'px';
          css['.nm-cv'] = $.makeStyleString(parsedCss);
          model.set({css: css});
          elem.css({left:''});
        });
      }
    }
function ( ) { var t = this , box = t . getComponentArea ( ) ; // Shift all components by the furthest left if ( box . left ) { t . $ ( '.nm-pv-component' ) . each ( function ( ) { var elem = $ ( this ) . find ( '.nm-cv' ) , left = ( parseInt ( elem . css ( 'left' ) , 10 ) ) , model = t . componentViews [ ( $ ( this ) . attr ( 'id' ) ) ] . model , css = _ . clone ( model . get ( 'css' ) ) , parsedCss = $ . parseStyleString ( css [ '.nm-cv' ] || '' ) ; // Set the left into the model & remove from the element style parsedCss . left = ( left - box . left ) + 'px' ; css [ '.nm-cv' ] = $ . makeStyleString ( parsedCss ) ; model . set ( { css : css } ) ; elem . css ( { left : '' } ) ; } ) ; } }
Move all components so the furthest left is on the left of the canvas. This makes the scrollbars make sense.
Move all components so the furthest left is on the left of the canvas . This makes the scrollbars make sense .