<?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"
	>
<channel>
	<title>Comments on: Rotating OpenLaszlo with Webkit</title>
	<atom:link href="http://www.cuppadev.co.uk/oldbrew/rotating-openlaszlo-with-webkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cuppadev.co.uk/oldbrew/rotating-openlaszlo-with-webkit/</link>
	<description>Cuppalicious coding!</description>
	<pubDate>Wed, 20 Aug 2008 09:05:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: henry</title>
		<link>http://www.cuppadev.co.uk/oldbrew/rotating-openlaszlo-with-webkit/#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'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/oldbrew/rotating-openlaszlo-with-webkit/#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's on my TODO list. However it is worth noting that since Webkit transform'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't seem to be equivalent functionality for rotating elements, unless perhaps you make use of OpenLaszlo's incomplete SVG kernel.

As for Internet Explorer, there seems to be a way you can apply transforms to elements as described "here":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/oldbrew/rotating-openlaszlo-with-webkit/#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't resist :).  There's now support for rotation in trunk.  If you pull down a copy after tonight's build you should be able to use setRotation() in webkit nightlies!

Regards,
Max Carlson
Openlaszlo.org

P.S.  Here's the changeset in case you'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="http://svn.openlaszlo.org/openlaszlo/trunk" rel="nofollow"&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="http://webkit.org/blog/130/css-transforms/" rel="nofollow"&gt;http://webkit.org/blog/130/css-transforms/&lt;/a&gt;


Tests: &lt;a href="http://localhost:8080/trunk/test/lztest/lztest-view.lzx?lzr=dhtml" rel="nofollow"&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['safari_visibility_instead_of_display'] = true;
this.quirks['absolute_position_accounts_for_offset'] = true;
this.quirks['canvas_div_cannot_be_clipped'] = true;
+            if (Lz.__BrowserDetect.version &gt; 523.10) {
+                this.capabilities['rotation'] = true;
+            }
} else if (Lz.__BrowserDetect.isOpera) {
// Fix bug in where if any parent of an image is hidden the size is 0
this.quirks['invisible_parent_image_sizing_fix'] = true;
@@ -1558,6 +1561,9 @@
return this.__contextmenu;
}

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

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 - 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(&#8217; + r + &#8216;deg)&#8217;;<br />
+}</p>
<p>if (LzSprite.prototype.quirks.ie_leak_prevention) {<br />
LzSprite.prototype.__sprites = {};</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.369 seconds -->
