assets/js/romo/spinner.js in romo-0.20.0 vs assets/js/romo/spinner.js in romo-0.20.1
- old
+ new
@@ -12,11 +12,11 @@
RomoSpinner.prototype.doStart = function(customBasisSize) {
var basisSize = (
customBasisSize ||
Romo.data(this.elem, 'romo-spinner-basis-size') ||
- Math.min(parseInt(Romo.css(this.elem, "width"), 10), parseInt(Romo.css(this.elem, "height"), 10))
+ Math.min(Romo.width(this.elem), Romo.height(this.elem))
);
var spinnerOpts = {
lines: 11, // The number of lines to draw
width: 2, // The line thickness
@@ -39,11 +39,11 @@
this.elemHtml = this.elem.innerHTML;
this.elemStyle = Romo.attr(this.elem, 'style');
Romo.setStyle(this.elem, 'position', 'relative');
- Romo.setStyle(this.elem, 'width', Romo.css(this.elem, 'width'));
- Romo.setStyle(this.elem, 'height', Romo.css(this.elem, 'height'));
+ Romo.setStyle(this.elem, 'width', Romo.width(this.elem)+'px');
+ Romo.setStyle(this.elem, 'height', Romo.height(this.elem)+'px');
Romo.updateHtml(this.elem, '');
this.spinner.spin(this.elem);
Romo.trigger(this.elem, 'romoSpinner:start', [this]);