fixing field width

This commit is contained in:
Peli de Halleux 2018-01-30 22:41:18 -08:00
parent 9187c47e09
commit 59e39fa76d

View File

@ -41,8 +41,7 @@ export class FieldSpeed extends Blockly.FieldSlider implements Blockly.FieldCust
this.speedSVG = document.createElementNS("http://www.w3.org/2000/svg", "svg") as SVGGElement; this.speedSVG = document.createElementNS("http://www.w3.org/2000/svg", "svg") as SVGGElement;
pxsim.svg.hydrate(this.speedSVG, { pxsim.svg.hydrate(this.speedSVG, {
viewBox: "0 0 200 100", viewBox: "0 0 200 100",
width: "200", width: "170"
height: "100"
}); });
labelContainer.appendChild(this.speedSVG); labelContainer.appendChild(this.speedSVG);