我正在尝试在OL5.0中将内容拖到html内容上。观察结果是,我能够毫无问题地从laszlo组件拖动到html组件。我可以从laszlo拖动到html,再拖动到laszlo。但是,如果我将该视图拖到html中,然后释放它,然后从html中拖动它,它就不起作用了。
这就是代码。
<canvas>
<view bgcolor="green" width="20" height="20" onmousedown="dragger.setAttribute('applied', true);this.bringToFront();" onmouseup="dragger.setAttribute('applied', false)">
<dragstate name="dragger"/>
</view>
<view y="50" width="100%" height="300" bgcolor="blue" onmousedown="res.apply()" onmouseup="res.remove()">
<resizestate name="res"/>
<dragstate name="drg"/>
<text width="100%" bgcolor="gray" onmousedown="parent.drg.apply()" onmouseup="parent.drg.remove()">Drag here</text>
<html id="ht" src="http://localhost:8080/lps-5.0.x/htmlTest/resource/text.html" x="15" y="15" width="${parent.width - 30}" height="${parent.height - 30}"/>
</view>
</canvas>发布于 2012-08-22 03:32:05
我一直在OpenLaszlo 2006中编程,当我尝试使用OpenLaszlo类时,它非常不稳定、有错误和不可预测。我不建议在任何应用程序中使用该特定类。
https://stackoverflow.com/questions/12006286
复制相似问题