Page 1 of 1

buttons force custom height

Posted: Saturday 07 March 2020 17:10
by Gianni
i have 3 cams on my dashboard.
2 are 16.9 and 1 4.3
Now the 4.3 is a spare because the 3 cam 16.9 was broken.
now i have a scrollbar in my dash.
How can is set the height of a button to force the 4.3 to 16.9

i try
buttons.Garage = {width:12, isimage:true, forcerefresh:true, refresh:1000, image: 'http://ip/cgi-bin/xxxxxxxxxxxi', url: 'http://ip/cgi-bin/xxxxxxxxxxxxxxi',framewidth:550, frameheight:350}

but this is not working?

grts

Re: buttons force custom height

Posted: Saturday 07 March 2020 19:55
by Lokonli
You can set the height of a button with the forceheight parameter.

I will update the documentation for this


Sent from my SM-A320FL using Tapatalk


Re: buttons force custom height

Posted: Saturday 07 March 2020 19:56
by Lokonli
And image must be renamed to btnimage, at least for latest master and beta

Sent from my SM-A320FL using Tapatalk


Re: buttons force custom height

Posted: Saturday 07 March 2020 20:29
by Gianni
hey Lokonli

i'm on v 3.0.0 master
if i change image to btnimage then the cam is not loading.
if i change to image again everything is ok

Re: buttons force custom height

Posted: Saturday 07 March 2020 22:10
by Lokonli
It was changed in release 3.2.0

Sent from my SM-A320FL using Tapatalk


Re: buttons force custom height

Posted: Sunday 08 March 2020 11:29
by Gianni
thx worked after i update the master branche

Re: buttons force custom height

Posted: Sunday 08 March 2020 14:15
by Gianni
just 1 question
when i click on the button i get a popup.
With width and height i can change the size of the modal.
But how can i change the size of the image.
If i hit the cam i want a image double the size so i can see clear what's on the frontdoor?