Scaletofit not working
Posted: Saturday 18 February 2023 20:29
I am trying to add a RSS feed in Dashticz. The RSS is a catoon and therefore needs to be in a small block.
The feed itself works.
This gives;
When i set a width of 6 i get;
I can also set a height but everything below 500 (even 499) gives the same image as the one above.
When is set the height to 500 the block dropes down out of picture (probably to the original image size)
When i set 'scaletofit' to 256 and aspectratio to 1, nothing happens.
When i set block size in CSS the block size is correct
But the image is still droping down out of sight (to the original image size
I tried different CSS things like;
object-fit: cover/initial/scale-down/fill but sadly nothing works
Does anybody have any suggestions?
The feed itself works.
Code: Select all
blocks['FokSuk'] = {
feed: "http://rss.xiffy.nl/cache/foksuk.xml"
When is set the height to 500 the block dropes down out of picture (probably to the original image size)
When i set 'scaletofit' to 256 and aspectratio to 1, nothing happens.
When i set block size in CSS the block size is correct
Code: Select all
.dt_block[data-id='FokSuk'] {
height:295px !important;
width:295px !important;
}
I tried different CSS things like;
Code: Select all
div {
background-image:url('httpsxxxxxxxx');
background-repeat:no-repeat;
background-size:50%;}
Code: Select all
div {
background-image:url('https:xxxxxxx');
background-repeat:no-repeat;
background-size:200px;}
Does anybody have any suggestions?