Page 1 of 1

[SOLVED] Problem with calc(100%-100px) height calculations in V7

Posted: Thu Jun 02, 2022 11:13 am
by Hrvoje
Hello

I have many projects with several skin rectangle elements with CSS formula as height value: "calc(100%-170px)".
I noticed that this doesn't work anymore in latest V7. Instead of properly calculated height, only thin line is shown.
When I change height formula to percentage or fixed px value, rectangle element shows OK.
If I export project with latest V6, "calc(100%-170px)" works as expected.

Is something changed in latest V7 which prevents usage of such CSS function for dynamic height calculations?

Edit: SOLVED!

This works: calc(100% - 170px)
This doesn't work: calc(100%-170px)
V7 expects spaces around math - operator
V6 was more liberal about it.

Thanks,
Regards