mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +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,
|
||||
),
|
||||
);
|
||||
if (this.getConstants()!.FIELD_TEXT_BASELINE_CENTER) {
|
||||
this.arrow.setAttribute('dominant-baseline', 'central');
|
||||
}
|
||||
if (this.getSourceBlock()?.RTL) {
|
||||
this.getTextElement().insertBefore(this.arrow, this.textContent_);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user