CSS command wrong in skin.js

Q&A about the latest versions
Post Reply
ALahode
Posts: 26
Joined: Thu May 12, 2016 4:45 pm
Location: Bielefeld, Germany

Hi all.

I have a problem with a CSS command in the Skin Editor.

Example:
I would like to calculate the width of a rectangle with

Code: Select all

calc(100vw*0.2);max-width:calc(100vh*0.5)
See the attached ggsk.

Unfortunately, this does not work because spaces are added in the skin.js:

Code: Select all

calc(100vw*0.2);max - width:calc(100vh*0.5)
If I remove them, it works as expected.

Am I doing something wrong or is this a bug?

Best regards.
André
Attachments
test.ggsk
(740 Bytes) Downloaded 89 times
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

I see what you mean, I've tried a couple of ways to remove them but at the moment the only way I can see is to directly edit the skin.js when you have finished.

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Guys,
Just to let you know this has been added to the bug tracker.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
ALahode
Posts: 26
Joined: Thu May 12, 2016 4:45 pm
Location: Bielefeld, Germany

Hi Tony and Hopki.

Thanks for testing and your answers!

Best regards.
André
christoph
Gnome
Posts: 108
Joined: Mon Aug 20, 2012 3:01 pm

Hi André!
The field next to width in the skin editor (when CSS is selected) should only be used to set the value for the width property.
If you want to set additional CSS properties, use the 'CSS Styles' field in the Advanced properties section.
So, in your case, put

Code: Select all

calc(100vw*0.2)
in the width field, and

Code: Select all

max-width:calc(100vh*0.5)
in the CSS Styles field of your rectangle...

Regards,
Christoph
ALahode
Posts: 26
Joined: Thu May 12, 2016 4:45 pm
Location: Bielefeld, Germany

Hi Christoph.

Thanks a lot. Works great! :-)

Best regards.
André
Post Reply