We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 036380b commit e9d6f07Copy full SHA for e9d6f07
src/main.js
@@ -276,8 +276,11 @@ textAngular.directive("textAngular", [
276
pos.y = ratio > newRatio ? pos.x * ratio : pos.y;
277
}
278
var el = angular.element(_el);
279
- el.css('height', Math.round(Math.max(0, pos.y) + 'px'));
280
- el.css('width', Math.round(Math.max(0, pos.x) + 'px'));
+ function roundedMaxVal(val) {
+ return Math.round(Math.max(0, val));
281
+ }
282
+ el.css('height', roundedMaxVal(pos.y) + 'px');
283
+ el.css('width', roundedMaxVal(pos.x) + 'px');
284
285
// reflow the popover tooltip
286
scope.reflowResizeOverlay(_el);
0 commit comments