Page 1 of 1
Dashticz Background Scaling Problem
Posted: Saturday 04 January 2020 17:02
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..
Re: Dashticz Background Scaling Problem
Posted: Sunday 05 January 2020 10:46
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

Re: Dashticz Background Scaling Problem
Posted: Sunday 05 January 2020 11:05
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.
Re: Dashticz Background Scaling Problem
Posted: Friday 10 January 2020 17:02
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.