mirror of
https://github.com/google/blockly.git
synced 2026-01-11 19:07:08 +01:00
Fix dropdown field alignment in zelos when baseline is not centered (IE / Edge) (#3534)
This commit is contained in:
@@ -635,7 +635,9 @@ Blockly.FieldDropdown.prototype.renderSelectedText_ = function() {
|
||||
this.textElement_.setAttribute('y', halfHeight);
|
||||
if (!this.constants_.FIELD_TEXT_BASELINE_CENTER) {
|
||||
this.textElement_.setAttribute('dy',
|
||||
this.constants_.FIELD_TEXT_BASELINE_Y - halfHeight);
|
||||
this.constants_.FIELD_TEXT_BASELINE_Y -
|
||||
this.constants_.FIELD_TEXT_HEIGHT / 2 +
|
||||
this.constants_.FIELD_TEXT_Y_OFFSET);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user