Right now, in a sample project, in the element.style, in the button, Ignition add a "margin-right: 4px"

"margin-right" was not specified in my original project, but the "border-left" was.

So, in my sample project, I tried to set the "margin-right: 100px", but it is, as I suspected, overriden by Ignition, except for the last button in this case

Tried the same thing in my original project, but the margin works in this page
Here the json for the multi-state button from my test project, in an empty coordinate container view.
[
{
"type": "ia.input.multi-state-button",
"version": 0,
"props": {
"states": [
{
"unselectedStyle": {
"marginRight": "100px",
"classes": ""
},
"text": "0",
"value": 0,
"selectedStyle": {
"classes": ""
}
},
{
"unselectedStyle": {
"marginRight": "100px",
"classes": ""
},
"text": "1",
"value": 1,
"selectedStyle": {
"classes": ""
}
},
{
"unselectedStyle": {
"marginRight": "100px",
"classes": ""
},
"text": "2",
"value": 2,
"selectedStyle": {
"classes": ""
}
},
{
"unselectedStyle": {
"marginRight": "100px",
"classes": ""
},
"text": "3",
"value": 3,
"selectedStyle": {
"classes": ""
}
},
{
"unselectedStyle": {
"marginRight": "100px",
"classes": ""
},
"text": "4",
"value": 4,
"selectedStyle": {
"classes": ""
}
}
],
"orientation": "row",
"defaultSelectedStyle": {
"marginRight": "100px"
},
"defaultUnselectedStyle": {
"marginRight": "100px"
},
"primary": true,
"controlValue": 0,
"indicatorValue": 0
},
"meta": {
"name": "MultiStateButton"
},
"position": {
"x": 55,
"y": 45,
"height": 120,
"width": 532
},
"custom": {
"random": 5
},
"propConfig": {
"props.states": {
"binding": {
"type": "expr",
"enabled": false,
"config": {
"expression": "{this.custom.random}"
},
"transforms": [
{
"code": "\treturn [{\n\t \"text\": str(i),\n\t \"value\": i,\n\t \"selectedStyle\": { \"classes\": \"\" },\n\t \"unselectedStyle\": { \"classes\": \"\", \"marginRight\": \"100px\" }\n\t} for i in range(value)]",
"type": "script"
}
]
}
},
"custom.random": {
"binding": {
"type": "expr",
"enabled": false,
"config": {
"expression": "now(10000)"
},
"transforms": [
{
"code": "\tif self.custom.random == 0:\n\t\treturn 4\n\t\n\treturn 0",
"type": "script"
}
]
}
}
}
}
]
Edit: Using Ignition 8.1.35