我使用moveTo和lineTo图形方法在Canvas对象上绘制一条线.如果线的一端位于Canvas外部,则该线溢出并在应用程序中的其他元素上方或下方绘制.
如何让Canvas保持包含在其中的行?
谢谢!
小智 2
<mx:Canvas id="canvas" top="0" right="51" left="0" bottom="32">
<mx:Canvas x="-1" y="0" width="0" height="0"> <!-- This is a HACK to make the canvas clip -->
</mx:Canvas>
</mx:Canvas>
Run Code Online (Sandbox Code Playgroud)