Merge pull request #933 from K-ran/bugfix/rounding_error

Potential bug fix for issue #661
This commit is contained in:
Rachel Fenichel
2017-02-15 09:12:23 -08:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -397,7 +397,7 @@ Blockly.Css.CONTENT = [
'.blocklyFlyoutScrollbar {',
'z-index: 30;',
'}',
'.blocklyScrollbarHorizontal, .blocklyScrollbarVertical {',
'position: absolute;',
'outline: none;',
@@ -464,6 +464,7 @@ Blockly.Css.CONTENT = [
'stroke: #f00;',
'stroke-width: 2;',
'stroke-linecap: round;',
'pointer-events: none;',
'}',
'.blocklyContextMenu {',

View File

@@ -152,10 +152,11 @@ Blockly.FieldAngle.prototype.showEditor_ = function() {
}, svg);
this.gauge_ = Blockly.utils.createSvgElement('path',
{'class': 'blocklyAngleGauge'}, svg);
this.line_ = Blockly.utils.createSvgElement('line',
{'x1': Blockly.FieldAngle.HALF,
this.line_ = Blockly.utils.createSvgElement('line',{
'x1': Blockly.FieldAngle.HALF,
'y1': Blockly.FieldAngle.HALF,
'class': 'blocklyAngleLine'}, svg);
'class': 'blocklyAngleLine',
}, svg);
// Draw markers around the edge.
for (var angle = 0; angle < 360; angle += 15) {
Blockly.utils.createSvgElement('line', {