
| Key: |
LPP-4571
|
| Type: |
Bug
|
| Status: |
Verified
|
| Resolution: |
Fixed
|
| Priority: |
P1
|
| Assignee: |
Unassigned
|
| Reporter: |
Maynard Demmon
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
1.
LPP-4571.lzx (0.5 kb)
|
|
Environment:
|
WinXP with Firefox 2.0 with Flash Player 9 with lzr=swf8.
|
|
| Severity: |
Minor
|
| Fixed in Change#: |
6,257
|
| Runtime: |
N/A
|
| Fix in hand: |
False
|
|
The second first text component in the following test case is not sized correctly for the text it contains. This seems to be a result of the fontsize being set via a constraint.
<canvas height="100%" width="100%" proxied="false">
<node id="foo">
<method name="init">
this.FONT_SIZE = 18;
</method>
</node>
<!-- Line to show where things should line up. -->
<view x="70" width="1" height="100" bgcolor="black"/>
<!-- Wrong height and width -->
<text text="TEST"
x="${70 - this.width}" y="10"
bgcolor="red" fontsize="$once{foo.FONT_SIZE}"
/>
<!-- Correct height and width -->
<text text="TEST"
x="${70 - this.width}" y="50"
bgcolor="red" fontsize="18"
/>
</canvas>
|
|
Description
|
The second first text component in the following test case is not sized correctly for the text it contains. This seems to be a result of the fontsize being set via a constraint.
<canvas height="100%" width="100%" proxied="false">
<node id="foo">
<method name="init">
this.FONT_SIZE = 18;
</method>
</node>
<!-- Line to show where things should line up. -->
<view x="70" width="1" height="100" bgcolor="black"/>
<!-- Wrong height and width -->
<text text="TEST"
x="${70 - this.width}" y="10"
bgcolor="red" fontsize="$once{foo.FONT_SIZE}"
/>
<!-- Correct height and width -->
<text text="TEST"
x="${70 - this.width}" y="50"
bgcolor="red" fontsize="18"
/>
</canvas> |
Show » |
|
<canvas height="100%" width="100%" proxied="false">
<node id="foo">
<method name="init">
this.setAttribute('FONT_SIZE', 18);
</method>
</node>
<!-- Line to show where things should line up. -->
<view x="70" width="1" height="100" bgcolor="black"/>
<!-- Wrong height and width -->
<text text="TEST"
x="${70 - this.width}" y="10"
bgcolor="red" fontsize="${foo.FONT_SIZE}"
/>
<!-- Correct height and width -->
<text text="TEST"
x="${70 - this.width}" y="50"
bgcolor="red" fontsize="18"
/>
</canvas>