Fix 55 warnings related to flyouts. (#3211)

* Fix 55 warnings related to flyouts.
This commit is contained in:
Sam El-Husseini
2019-10-16 12:13:37 -05:00
committed by GitHub
parent 986e965be8
commit 3c2c4677df
13 changed files with 174 additions and 101 deletions

View File

@@ -627,9 +627,12 @@ Blockly.Scrollbar.prototype.createDom_ = function(opt_class) {
'ry': radius
},
this.svgGroup_);
this.workspace_.getThemeManager().subscribe(this.svgHandle_, 'scrollbar', 'fill');
this.workspace_.getThemeManager().subscribe(this.svgHandle_, 'scrollbarOpacity', 'fill-opacity');
Blockly.utils.dom.insertAfter(this.outerSvg_, this.workspace_.getParentSvg());
this.workspace_.getThemeManager().subscribe(
this.svgHandle_, 'scrollbar', 'fill');
this.workspace_.getThemeManager().subscribe(
this.svgHandle_, 'scrollbarOpacity', 'fill-opacity');
Blockly.utils.dom.insertAfter(this.outerSvg_,
this.workspace_.getParentSvg());
};
/**
@@ -711,7 +714,8 @@ Blockly.Scrollbar.prototype.onMouseDownBar_ = function(e) {
e.stopPropagation();
return;
}
var mouseXY = Blockly.utils.mouseToSvg(e, this.workspace_.getParentSvg(),
var mouseXY = Blockly.utils.mouseToSvg(e,
this.workspace_.getParentSvg(),
this.workspace_.getInverseScreenCTM());
var mouseLocation = this.horizontal_ ? mouseXY.x : mouseXY.y;