Dashticz Background Scaling Problem

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Kowet
Posts: 1
Joined: Saturday 04 January 2020 16:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11253
Location: Paris
Contact:

Dashticz Background Scaling Problem

Post by Kowet »

hello everyone,

I Installed the last beta automatically by following the wiki tuto.

Everything is working fine except the background is not using all the space of the screen: it doesn't scale in height, only in width. And this with any device.

Is this a bug or something I badly configured?

My config is rather simple... with "screen[1]" only used.

"var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['sunrise','blocktitle_temp',1089,1186,1706,1356,1357]
columns[1]['width'] = 5 ;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',1100,1425,1754,1335,1127,1303,2654,2589]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;


var screens = {}
screens[1] = {}
/*screens[1]['background'] = 'bg2.jpg';*/
screens[1]['columns'] = [1,2]
"

Thank you, and many thanks to the devs... awesome work !


Kowet..
Attachments
Domoticz.png
Domoticz.png (323.15 KiB) Viewed 299 times
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Dashticz Background Scaling Problem

Post by Sjonnie2017 »

I think you're missing the definition of the resolution to use. I have a slightly different approach to defining the screens then you but maybe you can use it:

Code: Select all

// Desktop

screens[max_resolution_desktop] = {}
screens[max_resolution_desktop]['maxwidth'] = 1920;
screens[max_resolution_desktop]['maxheight'] = 1200;

screens[max_resolution_desktop][1] = {}
screens[max_resolution_desktop][1]['background'] = 'img/bg15.jpg';
screens[max_resolution_desktop][1]['columns'] = [1,2,3]

screens[max_resolution_desktop][2] = {}
screens[max_resolution_desktop][2]['background'] = 'img/bg15.jpg';
screens[max_resolution_desktop][2]['columns'] = [4]
HTH

Greetz,

Sjonnie

PS. Would love to see your config.js where you define your Yeelight. I am having some problems with the color slider myself ;)
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Background Scaling Problem

Post by Lokonli »

Kowet wrote: Saturday 04 January 2020 17:02 hello everyone,

I Installed the last beta automatically by following the wiki tuto.

Everything is working fine except the background is not using all the space of the screen: it doesn't scale in height, only in width. And this with any device.

Is this a bug or something I badly configured?

My config is rather simple... with "screen[1]" only used.

"var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['sunrise','blocktitle_temp',1089,1186,1706,1356,1357]
columns[1]['width'] = 5 ;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',1100,1425,1754,1335,1127,1303,2654,2589]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;


var screens = {}
screens[1] = {}
/*screens[1]['background'] = 'bg2.jpg';*/
screens[1]['columns'] = [1,2]
"

Thank you, and many thanks to the devs... awesome work !


Kowet..
This is indeed a bug. I made some changes related to disable/enable horizontal swiping and vertical scrollbar, which introduced this,

If I remember correctly the background image doesn't fill the complete screen if you have defined only one dashticz screen. So as workaround you could defined a second screen.

I'll add it to the issue list on Github.
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz Background Scaling Problem

Post by Lokonli »

Lokonli wrote: Sunday 05 January 2020 11:05
Kowet wrote: Saturday 04 January 2020 17:02 hello everyone,

I Installed the last beta automatically by following the wiki tuto.

Everything is working fine except the background is not using all the space of the screen: it doesn't scale in height, only in width. And this with any device.

Is this a bug or something I badly configured?

My config is rather simple... with "screen[1]" only used.

"var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['sunrise','blocktitle_temp',1089,1186,1706,1356,1357]
columns[1]['width'] = 5 ;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',1100,1425,1754,1335,1127,1303,2654,2589]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['streamplayer',buttons.nunl,buttons.nos]
columns[3]['width'] = 2;


var screens = {}
screens[1] = {}
/*screens[1]['background'] = 'bg2.jpg';*/
screens[1]['columns'] = [1,2]
"

Thank you, and many thanks to the devs... awesome work !


Kowet..
This is indeed a bug. I made some changes related to disable/enable horizontal swiping and vertical scrollbar, which introduced this,

If I remember correctly the background image doesn't fill the complete screen if you have defined only one dashticz screen. So as workaround you could defined a second screen.

I'll add it to the issue list on Github.
Fixed in latest beta.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest