08-17-2019 16:25
08-17-2019 16:25
I have been doing a lot of searching and have found no answers to this.
All the samples and documentation show the ability to use height, width, x, and y in the styles.css file.
For example what has been shown to work and what I am using:
This is for an image resource referenced in the index.gui file
Answered! Go to the Best Answer.
08-18-2019 08:04
08-18-2019 08:04
This sounds like a problem I had a long time ago that was due to a very subtle typo - i think it as something at the end of a line. I finally found it by cutting out most of the file and adding it back in an element at a time.
Hope this helps.
08-17-2019 16:39
08-17-2019 16:39
Have you linked your .css in widgets.gui?
08-17-2019 16:41
08-17-2019 16:41
Yes, here is a copy of the widgets.gui file - it is the default one created with a new project.
<svg>
<defs>
<link rel="stylesheet" href="styles.css" />
<link rel="import" href="/mnt/sysassets/widgets_common.gui" />
</defs>
</svg>
08-17-2019 18:42
08-17-2019 18:42
In addition, I copied the whole project up to the web based studio, and had the same issues as I did with the CLI version.
08-18-2019 08:04
08-18-2019 08:04
This sounds like a problem I had a long time ago that was due to a very subtle typo - i think it as something at the end of a line. I finally found it by cutting out most of the file and adding it back in an element at a time.
Hope this helps.
08-18-2019 10:12
08-18-2019 10:12
Still not sure what caused it, but literally stripped out all unnecessary characters, made it single line, and it started working.
Hopefully this will continue as I do have a formatting standard I like to use.
Thanks Drifty26!!
08-18-2019 10:24
08-18-2019 10:24
I did find a specific issue that caused the error!!
I can format the CSS as I had shown, and it worked fine. HOWEVER, if you put space(s) between the +(plus) or -(minus) in the positioning elements, it fails to properly format the text or image on the Fitbit.