Field editor fixes in Firefox (#284)
* fixing speed field picker * switching to open sans * alignment-baseline not support in FF
This commit is contained in:
@ -23,7 +23,7 @@ namespace pxsim.visuals {
|
||||
|
||||
this.reporter = pxsim.svg.child(this.group, "text", {
|
||||
'x': this.getWidth() / 2, 'y': this.getHeight() / 2,
|
||||
'text-anchor': 'middle', 'alignment-baseline': 'middle',
|
||||
'text-anchor': 'middle', 'dominant-baseline': 'middle',
|
||||
'style': 'font-size: 50px',
|
||||
'class': 'sim-text inverted number' }) as SVGTextElement;
|
||||
|
||||
|
@ -27,7 +27,7 @@ namespace pxsim.visuals {
|
||||
|
||||
this.reporter = pxsim.svg.child(this.group, "text", {
|
||||
'x': this.getInnerWidth() / 2, 'y': this.getInnerHeight() / 2,
|
||||
'text-anchor': 'middle', 'alignment-baseline': 'middle',
|
||||
'text-anchor': 'middle', 'dominant-baseline': 'middle',
|
||||
'style': 'font-size: 50px',
|
||||
'class': 'sim-text inverted number'
|
||||
}) as SVGTextElement;
|
||||
|
Reference in New Issue
Block a user