Change 20100716-maxcarlson-i by maxcarl...@friendly on 2010-07-16 19:02:25 PDT
in /Users/maxcarlson/openlaszlo/trunk2
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: UPDATED: Fix corner radius on the iphone
Bugs Fixed: LPP-9202 - DHTML on iphone: cornerradius not working
Technical Reviewer: ptw
QA Reviewer: hminsky
Details: Updated to address Tucker's comments:
It seems to me that if there are more than one corner specified, we should use
"longhand" border-{top,bottom}-{right,left}-radius, to avoid any
confusion/ambiguity. The exact shorthand notation appears to be in flux right
now, which may be why it's not working for you.
I added a quirk to explicitly set the corners in WebKit
Also, do we plan to support 'oval' corners (i.e., different x/y radii)?
Maybe eventually...
LzSprite - Add explicitly_set_border_radius quirk, set to true for WebKit
browsers that support border-radius. Add __applyCornerRadius() method that
applies the appropriate border-radius styles depending on
quirks.explicitly_set_border_radius, and use it in place of setting the div
explicitly.
Tests: <canvas><view width="100" height="100" bgcolor="red"
cornerradius="10"/></canvas> on iphone
Files:
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100716-maxcarlson-i.tar