Hi Andy,
Thanks for coming back to me!
Here is what I have accomplished:
[
{
"id": "a666512dc3f3d340",
"type": "ui_template",
"z": "c5c2730f3af33875",
"group": "0778f2d6568500cc",
"name": "Up/Dn + Press - Single Tile 3",
"order": 4,
"width": 1,
"height": 1,
"format": "<style>\n .md-button {\n min-width: 0%;\n min-height:0%;\n overflow: hidden\n }\n</style>\n\n\n<div id=\"{{'my_'+$id}}\" style=\"{{'color:'+theme.base_color}}\"></div>\n\n\n<md-button style=\"background-image: url('/png/Up_Arrow_Button.png'); background-repeat: no-repeat; \n background-color:transparent; background-size: 100% 25%; button-size: 100% 25%\"\n ng-mousedown=\"mousedownT($event)\"\n ng-mouseup=\"mouseupT($event)\">\n</md-button>\n\n<md-button style=\"background-image: url('/png/Dn_Arrow_Button.png'); background-repeat: no-repeat; \n background-color:transparent; background-size: 100% 25%; button-size: 100% 25%\"\n ng-mousedown=\"mousedownB($event)\" \n ng-mouseup=\"mouseupB($event)\">\n</md-button>\n\n<script>\n (function(scope) {\n\nscope.mousedownT = function(event) {\nevent.target.style.backgroundImage = \"url('/png/Up_Arrow_Button1.png')\";\n// event.target.style.backgroundRepeat = \"no-repeat\";\n// event.target.style.backgroundSize = \"100% 25%\";\n// event.target.style.buttonSize = \"100% 25%\";\nevent.target.style.color = \"red\";\nscope.send({topic:\"Upper\", payload: true})\n}\n\nscope.mouseupT = function(event) {\nevent.target.style.backgroundImage = \"url('/png/Up_Arrow_Button.png')\";\n// event.target.style.backgroundSize = \"100% 25%\";\n// event.target.style.buttonSize = \"100% 25%\";\nevent.target.style.color = \"blue\";\nscope.send({topic:\"Upper\", payload: false})\n}\nscope.mousedownB = function(event) {\nevent.target.style.backgroundImage = \"url('/png/Dn_Arrow_Button1.png')\";\n// event.target.style.backgroundRepeat = \"no-repeat\";\n// event.target.style.backgroundSize = \"100% 25%\";\n// event.target.style.buttonSize = \"100% 25%\";\nevent.target.style.color = \"red\";\nscope.send({topic:\"Lower\", payload: true})\n}\n\nscope.mouseupB = function(event) {\nevent.target.style.backgroundImage = \"url('/png/Dn_Arrow_Button.png')\";\n// event.target.style.backgroundSize = \"100% 25%\";\n// event.target.style.buttonSize = \"100% 25%\";\nevent.target.style.color = \"blue\";\nscope.send({topic:\"Lower\", payload: false})\n}\n\n})(scope);\n\n</script>",
"storeOutMessages": false,
"fwdInMessages": false,
"resendOnRefresh": false,
"templateScope": "local",
"className": "",
"x": 170,
"y": 230,
"wires": [
[]
]
},
{
"id": "b4bfe2d1ec854367",
"type": "ui_template",
"z": "c5c2730f3af33875",
"group": "0778f2d6568500cc",
"name": "Up/Dn + Press - Single Tile 3",
"order": 3,
"width": 1,
"height": 2,
"format": "<style>\n .md-button {\n min-width: 0%;\n min-height:0%;\n overflow: hidden\n }\n</style>\n\n\n<div id=\"{{'my_'+$id}}\" style=\"{{'color:'+theme.base_color}}\"></div>\n\n\n<md-button style=\"background-image: url('/png/Up_Arrow_Button.png'); background-repeat: no-repeat; \n background-color:transparent; background-size: 100% 25%; button-size: 100% 25%\"\n ng-mousedown=\"mousedownT($event)\"\n ng-mouseup=\"mouseupT($event)\">\n</md-button>\n\n<md-button style=\"background-image: url('/png/Dn_Arrow_Button.png'); background-repeat: no-repeat; \n background-color:transparent; background-size: 100% 25%; button-size: 100% 25%\"\n ng-mousedown=\"mousedownB($event)\" \n ng-mouseup=\"mouseupB($event)\">\n</md-button>\n\n<script>\n (function(scope) {\n\nscope.mousedownT = function(event) {\nevent.target.style.backgroundImage = \"url('/png/Up_Arrow_Button1.png')\";\n// event.target.style.backgroundRepeat = \"no-repeat\";\n// event.target.style.backgroundSize = \"100% 25%\";\n// event.target.style.buttonSize = \"100% 25%\";\nevent.target.style.color = \"red\";\nscope.send({topic:\"Upper\", payload: true})\n}\n\nscope.mouseupT = function(event) {\nevent.target.style.backgroundImage = \"url('/png/Up_Arrow_Button.png')\";\n// event.target.style.backgroundSize = \"100% 25%\";\n// event.target.style.buttonSize = \"100% 25%\";\nevent.target.style.color = \"blue\";\nscope.send({topic:\"Upper\", payload: false})\n}\nscope.mousedownB = function(event) {\nevent.target.style.backgroundImage = \"url('/png/Dn_Arrow_Button1.png')\";\n// event.target.style.backgroundRepeat = \"no-repeat\";\n// event.target.style.backgroundSize = \"100% 25%\";\n// event.target.style.buttonSize = \"100% 25%\";\nevent.target.style.color = \"red\";\nscope.send({topic:\"Lower\", payload: true})\n}\n\nscope.mouseupB = function(event) {\nevent.target.style.backgroundImage = \"url('/png/Dn_Arrow_Button.png')\";\n// event.target.style.backgroundSize = \"100% 25%\";\n// event.target.style.buttonSize = \"100% 25%\";\nevent.target.style.color = \"blue\";\nscope.send({topic:\"Lower\", payload: false})\n}\n\n})(scope);\n\n</script>",
"storeOutMessages": false,
"fwdInMessages": false,
"resendOnRefresh": false,
"templateScope": "local",
"className": "",
"x": 170,
"y": 190,
"wires": [
[]
]
},
{
"id": "0778f2d6568500cc",
"type": "ui_group",
"name": "Group 1",
"tab": "026fcdc7367db27f",
"order": 1,
"disp": true,
"width": 6
},
{
"id": "026fcdc7367db27f",
"type": "ui_tab",
"name": "Tab 3",
"icon": "dashboard",
"order": 2
}
]
If you look at the below screen capture, as long as I spread the "dual button" across two tiles vertically, the scroll bar disappears and both arrows are visible...
To recap, I am trying to fit both the up and down buttons onto a single tile, trying to get a similar effect to this:
Almost there!!
Thanks heaps yet again!!
Regds
Ed