More weirdness. If I add a subview to a stretched view, I get different results
on how that subview is displayed depending on whether a mouse event is defined
or not. Can anyone explain what's happening here?
<canvas debug="true">
<simplelayout axis="x" spacing="10"/>
<!-- Mouse over event -->
<view height="400" width="100" stretches="height"
bgcolor="silver"
onmouseover="Debug.write('mouseover')">
<view height="1" width="100" bgcolor="green"/>
</view>
<view height="400" width="100" stretches="height"
bgcolor="silver"
onmouseover="Debug.write('mouseover')">
<view height="2" width="100" bgcolor="red"/>
</view>
<!-- No mouse over event -->
<view height="400" width="100" stretches="height"
bgcolor="silver">
<view height="1" width="100" bgcolor="green"/>
</view>
<view height="400" width="100" stretches="height"
bgcolor="silver">
<view height="2" width="100" bgcolor="red"/>
</view>
</canvas>
On Tue, 22 Jan 2008, Pablo Kang wrote:
Mouse events are only available for the first 100 pixels of a stretched view.
Test case:
<canvas debug="true">
<!-- Mouse events only over first 100 pixels of gray rectangle; green bar
represents 100 pixels. -->
<view height="400" width="100" stretches="height"
bgcolor="silver"
onclick="Debug.write('click')"
onmouseover="Debug.write('mouseover')"
onmouseout="Debug.write('mouseout')" />
<!-- Bar representing 100 pixels -->
<view x="110" height="100" width="10" bgcolor="green" />
</canvas>
Ideas?
pablo