<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>CuppaDev - Latest Comments in Rotating OpenLaszlo with Webkit</title><link>http://cuppadev.disqus.com/</link><description></description><atom:link href="https://cuppadev.disqus.com/rotating_openlaszlo_with_webkit/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 31 Oct 2007 22:24:00 -0000</lastBuildDate><item><title>Re: Rotating OpenLaszlo with Webkit</title><link>http://www.cuppadev.co.uk/rotating-openlaszlo-with-webkit#comment-2429660</link><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;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!&lt;/p&gt;&lt;p&gt;Regards,&lt;br&gt;Max Carlson&lt;br&gt;&lt;a href="http://Openlaszlo.org" rel="nofollow noopener" target="_blank" title="Openlaszlo.org"&gt;Openlaszlo.org&lt;/a&gt;&lt;/p&gt;&lt;p&gt;P.S.  Here's the changeset in case you're curious how it works:&lt;br&gt;Author: max&lt;br&gt;Date: 2007-11-02 17:10:39 -0700 (Fri, 02 Nov 2007)&lt;br&gt;New Revision: 7107&lt;/p&gt;&lt;p&gt;Modified:&lt;br&gt;openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js&lt;br&gt;Log:&lt;br&gt;Change 20071102-maxcarlson-n by maxcarlson@Plastik on 2007-11-02 12:16:32 PDT&lt;br&gt;in /Users/maxcarlson/openlaszlo/trunk&lt;br&gt;for &lt;a href="http://svn.openlaszlo.org/openlaszlo/trunk" rel="nofollow noopener" target="_blank" title="http://svn.openlaszlo.org/openlaszlo/trunk"&gt;http://svn.openlaszlo.org/openlaszlo/trunk&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Summary: Add support for setRotation() for webkit nightlies&lt;/p&gt;&lt;p&gt;New Features:&lt;/p&gt;&lt;p&gt;Bugs Fixed: LPP-5030 - Add setRotation() support for webkit nightlies&lt;/p&gt;&lt;p&gt;Technical Reviewer: ptw&lt;br&gt;QA Reviewer: jcrowley&lt;br&gt;Doc Reviewer: (pending)&lt;/p&gt;&lt;p&gt;Documentation:&lt;/p&gt;&lt;p&gt;Release Notes:&lt;/p&gt;&lt;p&gt;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 noopener" target="_blank" title="http://webkit.org/blog/130/css-transforms/"&gt;http://webkit.org/blog/130/css-transforms/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Tests: &lt;a href="http://localhost:8080/trunk/test/lztest/lztest-view.lzx?lzr=dhtml" rel="nofollow noopener" target="_blank" title="http://localhost:8080/trunk/test/lztest/lztest-view.lzx?lzr=dhtml"&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)!&lt;/p&gt;&lt;p&gt;Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js&lt;br&gt;===================================================================&lt;br&gt;--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2007-11-02 23:50:37 UTC (rev 7106)&lt;br&gt;+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2007-11-03 00:10:39 UTC (rev 7107)&lt;br&gt;@@ -303,6 +303,9 @@&lt;br&gt;this.quirks['safari_visibility_instead_of_display'] = true;&lt;br&gt;this.quirks['absolute_position_accounts_for_offset'] = true;&lt;br&gt;this.quirks['canvas_div_cannot_be_clipped'] = true;&lt;br&gt;+            if (Lz.__BrowserDetect.version &amp;gt; 523.10) {&lt;br&gt;+                this.capabilities['rotation'] = true;&lt;br&gt;+            }&lt;br&gt;} else if (Lz.__BrowserDetect.isOpera) {&lt;br&gt;// Fix bug in where if any parent of an image is hidden the size is 0&lt;br&gt;this.quirks['invisible_parent_image_sizing_fix'] = true;&lt;br&gt;@@ -1558,6 +1561,9 @@&lt;br&gt;return this.__contextmenu;&lt;br&gt;}&lt;/p&gt;&lt;p&gt;+LzSprite.prototype.setRotation = function(r) {&lt;br&gt;+    &lt;a href="http://this.__LZdiv.style" rel="nofollow noopener" target="_blank" title="this.__LZdiv.style"&gt;this.__LZdiv.style&lt;/a&gt;['-webkit-transform'] = 'rotate(' + r + 'deg)';&lt;br&gt;+}&lt;/p&gt;&lt;p&gt;if (LzSprite.prototype.quirks.ie_leak_prevention) {&lt;br&gt;LzSprite.prototype.__sprites = {};&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max Carlson</dc:creator><pubDate>Wed, 31 Oct 2007 22:24:00 -0000</pubDate></item><item><title>Re: Rotating OpenLaszlo with Webkit</title><link>http://www.cuppadev.co.uk/rotating-openlaszlo-with-webkit#comment-2429659</link><description>&lt;p&gt;henry,&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;As for Internet Explorer, there seems to be a way you can apply transforms to elements as described "here":&lt;a href="http://msdn2.microsoft.com/en-us/library/ms532847.aspx" rel="nofollow noopener" target="_blank" title="http://msdn2.microsoft.com/en-us/library/ms532847.aspx"&gt;http://msdn2.microsoft.com/...&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;In any case, thanks for your interest! :)&lt;/p&gt;&lt;p&gt;~ James&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Wed, 31 Oct 2007 22:24:00 -0000</pubDate></item><item><title>Re: Rotating OpenLaszlo with Webkit</title><link>http://www.cuppadev.co.uk/rotating-openlaszlo-with-webkit#comment-2429658</link><description>&lt;p&gt;Please submit a feature request to the OpenLaszlo bug tracking system (JIRA), with your code, and we'll try and get it in!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">henry</dc:creator><pubDate>Wed, 31 Oct 2007 22:24:00 -0000</pubDate></item></channel></rss>