+1
Fixed

I think I found a bug where height="fit" can't be included in a style.

thillsman 12 aastat tagasi uuendatud 12 aastat tagasi 2
I'm cleaning up my code, so I've been going through my tags and copying and pasting attributes into styles. But I noticed that all my text was disappearing. I trial-and-errored my way to discover that the problem was the height="fit" attribute. Here's an example:

Original code:
<text name="descriptiontext" alias="DESCRIPTION" bottomof="SPACER2" text="blah blah blah" width="90%" height="fit" color="333333" font="HelveticaNeue" size="13" alignment="center" valignment="center" align="center"></text>

New code:
<style name="descriptionstyle" width="90%" height="fit" color="333333" font="HelveticaNeue" size="13" alignment="center" valignment="center" align="center" />
. . .
<text name="descriptiontext" alias="DESCRIPTION" bottomof="SPACER2" text="blah blah blah" style="descriptionstyle"></text>


This made the text disappear. I fixed it by adding an actual value to the height like this:
<style name="descriptionstyle" width="90%" height="20" color="333333" font="HelveticaNeue" size="13" alignment="center" valignment="center" align="center" />
. . .
<text name="descriptiontext" alias="DESCRIPTION" bottomof="SPACER2" text="blah blah blah" style="descriptionstyle"></text>


There's probably a perfectly rational reason for this, and it probably has to do with a lack of understanding of "fit" and that it's late. But I thought I'd share this in case anyone else encountered it.
Tyler,

This is a known bug for height="fit" in styles. We have it in our bug tracking system.

You could try leaving height="fit" on your text object and shifting everything else to your style.
Awesome. Thanks, Ian! (And yep, that's what I'm doing as a fix when a set height value won't work.)