Nik,
you are right, the origin of the rotation differs for DHTML runtime
OpenLaszlo versions up to 4.5. That's a bug, or let's say: no-one
seemed to use that feature in applications, it was just used in small
demos. I filed a bug in JIRA a few weeks ago, and committed a fix
yesterday:
http://jira.openlaszlo.org/jira/browse/LPP-8362
That means, with the nightly builds (http://download.openlaszlo.org/nightly/trunk/
) rotation should work for DHTML with Safari 4.x, Webkit and FF 3.5+
now.
If you want to use DHTML and rotation, remember that IE is not going
to support it. The best approach will be to deploy an SWF version of
older browser and IE users, and use the DHTML version for the "goog"
browsers.
- Raju
Thank you very much for patiently responding to my question!
On *Firefox 3.5.2* "*rotation*" is set to *false*.
On *Safari 4.02* the *dhtml* version works fine.
But the center of rotation is not the same as *swf* version!
Is it a known fact/feature/bug?
Regards
Nik
On Mon, Aug 10, 2009 at 8:45 PM, Max Carlson <max at openlaszlo.org>
wrote:
> We try to support everything that the browser allows us to.
Rotation is
> only supported in certain browsers - currently recent builds of
> Safari/webkit and Firefox 3.5. You can check canvas.capabilities
to see if
> the feature(s) you want to use are available in a given runtime/
browser.
>
> nitralime wrote:
>
>> *Hi folks*,
>>
>>
>> A few days ago I began to learn OpenLaszlo by reading
>> the book "*Laszlo in Action*" (german edition) and trying
>> to reproduce the sample codes in this book (a la learninig by
doing).
>>
>> I have tried the code in section 4.1.3 (/animation via rotation/).
>> Compiling it into dhtml gives rise to the following warning:
>>
>> The dhtml runtime does not support view.setRotation(). Check
>> "canvas.capabilities.rotation" to avoid this warning
>>
>> and the animation doesn't work!
>> I'm using the latest version of OpenLaszlo (4.5.0).
>>
>> Where can I check up which features (attributes, methods etc. of
objects)
>> in swf runtime are not supported on dhtml runtime environment and
vice
>> versa?
>>
>> Any feedbacks are very much appreciated!
>>
>> Regards
>> Nik
>>
>
> --
> Regards,
> Max Carlson
> OpenLaszlo.org
>