(Note: I am checking this changeset in.)


Change philip-20120810-9UF by philip@philip-i7-2 on 2012-08-10 13:57:28 EDT
    in /cygdrive/f/clients/laszlo/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk


Summary: Fix mouseup event on IE; Fix width computation on IE9


New Features:


Bugs Fixed: LPP-10148, LPP-10206, LPP-10236


Technical Reviewer: (pending)
QA Reviewer: dju
Doc Reviewer: (pending)


Documentation:


Release Notes:


Overview:
On IE, many mouse clicks are handled by LzSprite.__globalClickDispatcher, and not by LzSprite.__clickDispatcher. Some of the logic was missing in the case where onmousedown was setting LzMouseKernel.__lastMouseDown.


On IE 9, I found that the computed text sizes are off by one. I did not find the source of the error, but I added a quirk to add 1 pixel to the reported text width. This seems to fix LPP-10206 and LPP-10236. I rebuilt the dev-console so the line wrapping is not seen there anymore.


Details:
LzSprite-event.js
- Set LzMouseKernel.__lastMouseDown and __mouseisdown when onmousedown is seen in __globalClickDispatcher().


LzSprite-quirks.js
- Added fix_ie9_textwidth quirk and only enable it for IE9+.


LzTextSprite.js
- When fix_ie9_textwidth quirk is enabled, add 1 pixel to the computed text width in getTextWidth().


Tests:
Test cases in jira reports. lzpix


Files:
M       lps/admin/dev-console.lzx.swf
M       lps/admin/lps/resources/lps/components/lz/resources/autoPng/bezel_inner_up.sprite.png
M       lps/admin/lps/includes/lfc/LFCdhtml.js
M       lps/admin/dev-console.lzx.js
M       lps/admin/dev-console.sprite.png
M       WEB-INF/lps/lfc/kernel/dhtml/lzsprite/LzSprite-event.js
M       WEB-INF/lps/lfc/kernel/dhtml/lzsprite/LzSprite-quirks.js
M       WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/philip-20120810-9UF.tar


Reply via email to