Hello,
I am doing a very small and simple ui-svg but still can't get it to the dashboard properly. It seems "something" is adding extra pixels to the left and at the top and bottom, so that I end up with scrollbars.
Here is my node: it is a simple switch with the animation opening and closing the rocker. The svg should be displayed on 1x2 widget boxes, each 32x32 in size and it should touch the left and right side of this area. But there is space on the left side and at the top and bottom (I added a blue background to show this)
If I reduce to x="0" y="0" width="26" height="58" the scrollbars disappear but the svg does not fill the area.
Any help is welcome, thanks a lot
Martin
[
{
"id": "d73ab57d.847a98",
"type": "ui_svg_graphics",
"z": "548657c5.9af4d8",
"group": "bd825302.06d21",
"order": 7,
"width": 1,
"height": 2,
"svgString": "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0\" y=\"0\" width=\"26\" height=\"58\" viewBox=\"0 0 32 64\" preserveAspectRatio=\"xMidYMid meet\">\n<rect id=\"svgEditorBackground\" x=\"0\" y=\"0\" width=\"32\" height=\"64\" style=\"fill:cornflowerblue;stroke:none;\"/>\n\n<line id=\"rocker\" x1=\"5\" y1=\"32\" x2=\"27\" y2=\"32\" style=\"stroke: black; stroke-width:2px;fill:none;\"/>\n<circle id=\"circ1\" cx=\"5\" cy=\"32\" style=\"stroke: black; stroke-width:2px;fill:white;\" r=\"4\"/>\n<circle id=\"circ2\" cx=\"27\" cy=\"32\" style=\"stroke: black; stroke-width:2px;fill:white;\" r=\"4\"/>\n\n</svg>",
"clickableShapes": [],
"javascriptHandlers": [],
"smilAnimations": [
{
"id": "open",
"targetId": "rocker",
"classValue": "",
"attributeName": "transform",
"transformType": "rotate",
"fromValue": "0, 5,32",
"toValue": "-45,5,32",
"trigger": "msg",
"duration": "1",
"durationUnit": "ms",
"repeatCount": "1",
"end": "freeze",
"delay": "1",
"delayUnit": "s",
"custom": ""
},
{
"id": "close",
"targetId": "rocker",
"classValue": "",
"attributeName": "transform",
"transformType": "rotate",
"fromValue": "0, 5,32",
"toValue": "0,5,32",
"trigger": "msg",
"duration": "1",
"durationUnit": "ms",
"repeatCount": "1",
"end": "freeze",
"delay": "1",
"delayUnit": "s",
"custom": ""
}
],
"bindings": [],
"showCoordinates": false,
"autoFormatAfterEdit": false,
"showBrowserErrors": false,
"showBrowserEvents": false,
"enableJsDebugging": false,
"sendMsgWhenLoaded": false,
"outputField": "payload",
"editorUrl": "//drawsvg.org/drawsvg.html",
"directory": "",
"panning": "disabled",
"zooming": "disabled",
"panOnlyWhenZoomed": false,
"doubleClickZoomEnabled": false,
"mouseWheelZoomEnabled": false,
"dblClickZoomPercentage": 150,
"name": "SPST",
"x": 570,
"y": 80,
"wires": [
[]
]
},
{
"id": "bd825302.06d21",
"type": "ui_group",
"z": "",
"name": "Dashboard",
"tab": "17d09b07.741a55",
"order": 1,
"disp": false,
"width": "35",
"collapse": false
},
{
"id": "17d09b07.741a55",
"type": "ui_tab",
"z": "",
"name": "Home",
"icon": "Dashboard",
"disabled": false,
"hidden": false
}
]