Sie sind nicht angemeldet.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

1

Mittwoch, 16. Januar 2013, 18:54

HTML5 textfield layer bug.

I wanted to have the title text aligned in center and with a background so I changed the textfield layer from this

<layer name="skin_title" zorder="5" url="%SWFPATH%/plugins/textfield.swf" align="lefttop" edge="leftbottom" width="95%" height="40" autoheight="true" x="5" y="-3" enabled="false" background="false" border="false" css="text-align:left; color:#FFFFFF; font-family:Verdana; font-weight:normal; font-size:16px;font-style:italic;" textshadow="1" visible="false" />

to this

<layer name="skin_title" url="%SWFPATH%/plugins/textfield.swf" align="lefttop" edge="leftbottom" width="100%" height="32" autoheight="true" x="0" y="-1" zorder="5" enabled="false" background="true" border="false" css=" text-align:center; color:#000000; font-family:Verdana; font-weight:normal; font-size:16px;" textshadow="0" visible="false" />

Everything works fine on flash but in HTML5 both iPad and desktop the layer only loads in full 100% width on the first pano. When I load the next one it only loads with the width of the text and aligned to the left.

Hans

2

Donnerstag, 17. Januar 2013, 09:46

Hi,

this is a bug in the current version - you could try disabling autoheight=true as workaround.

This and many other HTML5 textfield bugs will be fixed in the next release.

Best regards,
Klaus

peasn

Anfänger

Beiträge: 23

Wohnort: Belfast, Northern Ireland

  • Nachricht senden

3

Dienstag, 12. Februar 2013, 13:30

Hi Klaus, is there a bug with changing text within an dragable textfield layer in HTML with autoheight="true" set?
When I turn off autoheight the text is visible but cuts off, but when I enable it no text is visible. I am loading text from another xml doc and populating the same masked text layer each time:

my layers:

Quellcode

1
2
3
4
5
6
<layer name="title" url="%SWFPATH%/plugins/textfield.swf" visible="false" children="false" parent="textbox" enabled="false" width="1024" zorder="97" align="topcenter" y="15" border="false" background="false" css="p{text-align:center; color:#E3E3E3; font-family:Ringbearer; font-weight:normal; font-size:36px;}" keep="true" />

<layer name="textmask" type="container" visible="false" parent="textbox" align="lefttop" x="30" y="90" width="40%" height="60%" zorder="96" bgcolor="0xFFFFFF" enabled="true" bgalpha="0" maskchildren="true" keep="true" >
				
<layer name="text" url="%SWFPATH%/plugins/textfield.swf" visible="false" children="false" align="lefttop" x="0" y="0" width="100%" autoheight="true" border="false" background="false" css="p{text-align:left; color:#E3E3E3; font-family:Ringbearer; font-weight:normal; font-size:18px;}" ondown="draglayer_text(start,290);" keep="true" />
</layer>



my action to populate the textfield from a reference to another xml file which is loaded in:

Quellcode

1
2
3
set(layer[text].y,0);     
set(layer[text].css, text-align:left; color:#FFFFFF; font-family:Ringbearer; font-weight:normal; font-size:18px;); 
set(layer[text].html, get(data[get(itemdesc)].content));



does that look ok or is there a bug in the HTML side with the dargagble layers?

Thanks

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »peasn« (12. Februar 2013, 14:38) aus folgendem Grund: took out vcenter="true" as I was just testing with it before. Still broken unfortunately


4

Mittwoch, 13. Februar 2013, 13:33

Hi,
is there a bug with changing text within an dragable textfield layer in HTML with autoheight="true" set?
Do you mean the HTML5 textfield? - If yes, there is an known bug with autoheight=true in the current version, which will be fixed in the next release.

Btw - when a element is made 'dragable' by xml scripts, then this is not related to the element (e.g. a textfield plugin) itself.

Best regards,
Klaus

peasn

Anfänger

Beiträge: 23

Wohnort: Belfast, Northern Ireland

  • Nachricht senden

5

Donnerstag, 14. Februar 2013, 12:20

Hey Klaus, yea I meant the HTML textfield. I'll try a workaround for it until the update.

Thanks