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

Q&A about the latest versions
Post Reply
User avatar
Hrvoje
Posts: 171
Joined: Sat Feb 28, 2009 7:34 pm
Location: Zagreb, Croatia
Contact:

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
Post Reply