mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Remove obsolete Gecko image hack. Apparently this has been fixed in Gecko.
This commit is contained in:
@@ -84,17 +84,6 @@ Blockly.FieldImage.prototype.init = function() {
|
||||
{'height': this.height_ + 'px',
|
||||
'width': this.width_ + 'px'}, this.fieldGroup_);
|
||||
this.setValue(this.src_);
|
||||
if (goog.userAgent.GECKO) {
|
||||
/**
|
||||
* Due to a Firefox bug which eats mouse events on image elements,
|
||||
* a transparent rectangle needs to be placed on top of the image.
|
||||
* @type {SVGElement}
|
||||
*/
|
||||
this.rectElement_ = Blockly.createSvgElement('rect',
|
||||
{'height': this.height_ + 'px',
|
||||
'width': this.width_ + 'px',
|
||||
'fill-opacity': 0}, this.fieldGroup_);
|
||||
}
|
||||
this.sourceBlock_.getSvgRoot().appendChild(this.fieldGroup_);
|
||||
|
||||
// Configure the field to be transparent with respect to tooltips.
|
||||
|
||||
Reference in New Issue
Block a user