rcyeager
06-15-2007, 07:04 AM
In SWF mode, the red view can be dragged beyond the top and left sides, but in DHTML the red view can't...negative x/y view positions aren't honored:
<canvas id="maincanvas" width="100%" height="100%" validate="false" debug="false" proxied="false" bgcolor="0x00aaaa">
<debug x="650" y="200" width="800" height="400" fontsize="12"/>
<view x="200" y="200" width="400" height="400" bgcolor="blue" clip="true">
<view x="100" y="100" width="100" height="100" bgcolor="red" onmousedown="this.dragger.apply()" onmouseup="this.dragger.remove()">
<dragstate name="dragger"/>
</view>
</view>
</canvas>
<canvas id="maincanvas" width="100%" height="100%" validate="false" debug="false" proxied="false" bgcolor="0x00aaaa">
<debug x="650" y="200" width="800" height="400" fontsize="12"/>
<view x="200" y="200" width="400" height="400" bgcolor="blue" clip="true">
<view x="100" y="100" width="100" height="100" bgcolor="red" onmousedown="this.dragger.apply()" onmouseup="this.dragger.remove()">
<dragstate name="dragger"/>
</view>
</view>
</canvas>