mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
fix: correct dropdown arrow placement for Thrasos on Safari (#8017)
This commit is contained in:
@@ -229,6 +229,9 @@ export class FieldDropdown extends Field<string> {
|
|||||||
: ' ' + FieldDropdown.ARROW_CHAR,
|
: ' ' + FieldDropdown.ARROW_CHAR,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
if (this.getConstants()!.FIELD_TEXT_BASELINE_CENTER) {
|
||||||
|
this.arrow.setAttribute('dominant-baseline', 'central');
|
||||||
|
}
|
||||||
if (this.getSourceBlock()?.RTL) {
|
if (this.getSourceBlock()?.RTL) {
|
||||||
this.getTextElement().insertBefore(this.arrow, this.textContent_);
|
this.getTextElement().insertBefore(this.arrow, this.textContent_);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user