public/dashboard/app/angular-ui-dashboard.js
function (e) {
          // remove listener and marquee
          jQuery($window).off('mousemove', mousemove);
          $marquee.remove();

          // calculate change in units
          var curX = e.clientX;
          var pixelChange = curX - initX;
          var unitChange = Math.round(pixelChange * transformMultiplier * 100) / 100;

          // add to initial unit width
          var newWidth = unitWidth * 1 + unitChange;
          widget.setWidth(newWidth + widthUnits);
          $scope.$emit('widgetChanged', widget);
          $scope.$apply();
        }
function (e) {
          // remove listener and marquee
          jQuery($window).off('mousemove', mousemove);
          $marquee.remove();

          // calculate change in units
          var curX = e.clientX;
          var pixelChange = curX - initX;
          var unitChange = Math.round(pixelChange * transformMultiplier * 100) / 100;

          // add to initial unit width
          var newWidth = unitWidth * 1 + unitChange;
          widget.setWidth(newWidth + widthUnits);
          $scope.$emit('widgetChanged', widget);
          $scope.$apply();
        }
function ( e ) { // remove listener and marquee jQuery ( $window ) . off ( 'mousemove' , mousemove ) ; $marquee . remove ( ) ; // calculate change in units var curX = e . clientX ; var pixelChange = curX - initX ; var unitChange = Math . round ( pixelChange * transformMultiplier * 100 ) / 100 ; // add to initial unit width var newWidth = unitWidth * 1 + unitChange ; widget . setWidth ( newWidth + widthUnits ) ; $scope . $emit ( 'widgetChanged' , widget ) ; $scope . $apply ( ) ; }
sets new widget width on mouseup
sets new widget width on mouseup