<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rotating OpenLaszlo with Webkit</title>
	<atom:link href="http://www.cuppadev.co.uk/dev/rotating-openlaszlo-with-webkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cuppadev.co.uk/dev/rotating-openlaszlo-with-webkit/</link>
	<description>Cuppalicious coding!</description>
	<lastBuildDate>Thu, 12 Aug 2010 13:37:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: henry</title>
		<link>http://www.cuppadev.co.uk/dev/rotating-openlaszlo-with-webkit/comment-page-1/#comment-127</link>
		<dc:creator>henry</dc:creator>
		<pubDate>Thu, 01 Nov 2007 02:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=126#comment-127</guid>
		<description>Please submit a feature request to the OpenLaszlo bug tracking system (JIRA), with your code, and we&#039;ll try and get it in!
</description>
		<content:encoded><![CDATA[<p>Please submit a feature request to the OpenLaszlo bug tracking system (JIRA), with your code, and we&#8217;ll try and get it in!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Urquhart</title>
		<link>http://www.cuppadev.co.uk/dev/rotating-openlaszlo-with-webkit/comment-page-1/#comment-128</link>
		<dc:creator>James Urquhart</dc:creator>
		<pubDate>Thu, 01 Nov 2007 02:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=126#comment-128</guid>
		<description>henry,

That&#039;s on my TODO list. However it is worth noting that since Webkit transform&#039;s have yet to be standardised and thus implemented in other web browsers, so it might be a bit premature to implement such functionality now.

After a quick look around the mozilla docs, there sadly doesn&#039;t seem to be equivalent functionality for rotating elements, unless perhaps you make use of OpenLaszlo&#039;s incomplete SVG kernel.

As for Internet Explorer, there seems to be a way you can apply transforms to elements as described &quot;here&quot;:http://msdn2.microsoft.com/en-us/library/ms532847.aspx.

In any case, thanks for your interest! :)

~ James
</description>
		<content:encoded><![CDATA[<p>henry,</p>
<p>That&#8217;s on my TODO list. However it is worth noting that since Webkit transform&#8217;s have yet to be standardised and thus implemented in other web browsers, so it might be a bit premature to implement such functionality now.</p>
<p>After a quick look around the mozilla docs, there sadly doesn&#8217;t seem to be equivalent functionality for rotating elements, unless perhaps you make use of OpenLaszlo&#8217;s incomplete SVG kernel.</p>
<p>As for Internet Explorer, there seems to be a way you can apply transforms to elements as described &#8220;here&#8221;:http://msdn2.microsoft.com/en-us/library/ms532847.aspx.</p>
<p>In any case, thanks for your interest! :)</p>
<p>~ James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Carlson</title>
		<link>http://www.cuppadev.co.uk/dev/rotating-openlaszlo-with-webkit/comment-page-1/#comment-129</link>
		<dc:creator>Max Carlson</dc:creator>
		<pubDate>Thu, 01 Nov 2007 02:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=126#comment-129</guid>
		<description>Hi James,

I couldn&#039;t resist :).  There&#039;s now support for rotation in trunk.  If you pull down a copy after tonight&#039;s build you should be able to use setRotation() in webkit nightlies!

Regards,
Max Carlson
Openlaszlo.org

P.S.  Here&#039;s the changeset in case you&#039;re curious how it works:
Author: max
Date: 2007-11-02 17:10:39 -0700 (Fri, 02 Nov 2007)
New Revision: 7107

Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20071102-maxcarlson-n by maxcarlson@Plastik on 2007-11-02 12:16:32 PDT
in /Users/maxcarlson/openlaszlo/trunk
for &lt;a href=&quot;http://svn.openlaszlo.org/openlaszlo/trunk&quot; rel=&quot;nofollow&quot;&gt;http://svn.openlaszlo.org/openlaszlo/trunk&lt;/a&gt;

Summary: Add support for setRotation() for webkit nightlies

New Features:

Bugs Fixed: LPP-5030 - Add setRotation() support for webkit nightlies

Technical Reviewer: ptw
QA Reviewer: jcrowley
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Set capabilities.rotation to true in Safari.  Add setRotation() method that sets the appropriate style per &lt;a href=&quot;http://webkit.org/blog/130/css-transforms/&quot; rel=&quot;nofollow&quot;&gt;http://webkit.org/blog/130/css-transforms/&lt;/a&gt;


Tests: &lt;a href=&quot;http://localhost:8080/trunk/test/lztest/lztest-view.lzx?lzr=dhtml&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/trunk/test/lztest/lztest-view.lzx?lzr=dhtml&lt;/a&gt; shows rotation in a recent build of webkit (WebKit-SVN-r27375)!



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2007-11-02 23:50:37 UTC (rev 7106)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2007-11-03 00:10:39 UTC (rev 7107)
@@ -303,6 +303,9 @@
this.quirks[&#039;safari_visibility_instead_of_display&#039;] = true;
this.quirks[&#039;absolute_position_accounts_for_offset&#039;] = true;
this.quirks[&#039;canvas_div_cannot_be_clipped&#039;] = true;
+            if (Lz.__BrowserDetect.version &gt; 523.10) {
+                this.capabilities[&#039;rotation&#039;] = true;
+            }
} else if (Lz.__BrowserDetect.isOpera) {
// Fix bug in where if any parent of an image is hidden the size is 0
this.quirks[&#039;invisible_parent_image_sizing_fix&#039;] = true;
@@ -1558,6 +1561,9 @@
return this.__contextmenu;
}

+LzSprite.prototype.setRotation = function(r) {
+    this.__LZdiv.style[&#039;-webkit-transform&#039;] = &#039;rotate(&#039; + r + &#039;deg)&#039;;
+}

if (LzSprite.prototype.quirks.ie_leak_prevention) {
LzSprite.prototype.__sprites = {};
</description>
		<content:encoded><![CDATA[<p>Hi James,</p>
<p>I couldn&#8217;t resist :).  There&#8217;s now support for rotation in trunk.  If you pull down a copy after tonight&#8217;s build you should be able to use setRotation() in webkit nightlies!</p>
<p>Regards,<br />
Max Carlson<br />
Openlaszlo.org</p>
<p>P.S.  Here&#8217;s the changeset in case you&#8217;re curious how it works:<br />
Author: max<br />
Date: 2007-11-02 17:10:39 -0700 (Fri, 02 Nov 2007)<br />
New Revision: 7107</p>
<p>Modified:<br />
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js<br />
Log:<br />
Change 20071102-maxcarlson-n by maxcarlson@Plastik on 2007-11-02 12:16:32 PDT<br />
in /Users/maxcarlson/openlaszlo/trunk<br />
for <a href="http://svn.openlaszlo.org/openlaszlo/trunk" rel="nofollow">http://svn.openlaszlo.org/openlaszlo/trunk</a></p>
<p>Summary: Add support for setRotation() for webkit nightlies</p>
<p>New Features:</p>
<p>Bugs Fixed: LPP-5030 &#8211; Add setRotation() support for webkit nightlies</p>
<p>Technical Reviewer: ptw<br />
QA Reviewer: jcrowley<br />
Doc Reviewer: (pending)</p>
<p>Documentation:</p>
<p>Release Notes:</p>
<p>Details: Set capabilities.rotation to true in Safari.  Add setRotation() method that sets the appropriate style per <a href="http://webkit.org/blog/130/css-transforms/" rel="nofollow">http://webkit.org/blog/130/css-transforms/</a></p>
<p>Tests: <a href="http://localhost:8080/trunk/test/lztest/lztest-view.lzx?lzr=dhtml" rel="nofollow">http://localhost:8080/trunk/test/lztest/lztest-view.lzx?lzr=dhtml</a> shows rotation in a recent build of webkit (WebKit-SVN-r27375)!</p>
<p>Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js<br />
===================================================================<br />
&#8212; openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2007-11-02 23:50:37 UTC (rev 7106)<br />
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2007-11-03 00:10:39 UTC (rev 7107)<br />
@@ -303,6 +303,9 @@<br />
this.quirks['safari_visibility_instead_of_display'] = true;<br />
this.quirks['absolute_position_accounts_for_offset'] = true;<br />
this.quirks['canvas_div_cannot_be_clipped'] = true;<br />
+            if (Lz.__BrowserDetect.version > 523.10) {<br />
+                this.capabilities['rotation'] = true;<br />
+            }<br />
} else if (Lz.__BrowserDetect.isOpera) {<br />
// Fix bug in where if any parent of an image is hidden the size is 0<br />
this.quirks['invisible_parent_image_sizing_fix'] = true;<br />
@@ -1558,6 +1561,9 @@<br />
return this.__contextmenu;<br />
}</p>
<p>+LzSprite.prototype.setRotation = function(r) {<br />
+    this.__LZdiv.style['-webkit-transform'] = &#8216;rotate(&#8216; + r + &#8216;deg)&#8217;;<br />
+}</p>
<p>if (LzSprite.prototype.quirks.ie_leak_prevention) {<br />
LzSprite.prototype.__sprites = {};</p>
]]></content:encoded>
	</item>
</channel>
</rss>
