我创建了一个视图,它将缩放该特定视图中的视图。该代码在OL 3.3中工作正常,但不能在inOL 4.9中工作
发布于 2012-09-10 19:55:55
视图的缩放方式已经改变了,首先是with the 4.0 release (因为当时的浏览器不支持嵌套div的缩放)。对于OpenLaszlo 4.9,视图中添加了xscale和yscale属性。有关详细信息,请查看相应的JIRA:http://jira.openlaszlo.org/jira/browse/LPP-9865
下面是一个简单的例子,它适用于我在OpenLaszlo 5.0的两个运行时:
<canvas>
<class name="testbox" width="120" height="120" bgcolor="blue">
<text text="${'xscale=' + parent.xscale + ' / yscale=' + parent.yscale}" fgcolor="white"/>
<view x="30" y="30" width="60" height="60" bgcolor="red"></view>
</class>
<testbox x="20" y="50" />
<testbox x="20" y="200" xscale="2"/>
<testbox x="20" y="350" yscale="1.5"/>
</canvas>以下是该应用程序如何使用DHTML运行时5.0运行的屏幕截图:

https://stackoverflow.com/questions/12346797
复制相似问题