Author: pbr
Date: 2007-11-02 14:42:20 -0700 (Fri, 02 Nov 2007)
New Revision: 7105
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20071102-Philip-8 by [EMAIL PROTECTED] on 2007-11-02 15:33:58 EDT
in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Fix window movement when clicked in IE7/dhtml
New Features:
Bugs Fixed: LPP-4918, LPP-4176
Technical Reviewer: max
QA Reviewer: jcrowley
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
The fix for LPP-4176 stopped working and mouse clicks over a window causes it
to move in IE7/dhtml. The embedding scheme changed recently and this fix is not
needed. It now corrects by two pixels and the window now moves in the other
direction. The fix is to remove the change made for LPP-4176
Tests:
See tests in LPP-4918 and LPP-4176. When the window is clicked in IE7/dhtml, it
no longer moves.
Files:
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071102-Philip-8.tar
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js 2007-11-02
20:09:58 UTC (rev 7104)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js 2007-11-02
21:42:20 UTC (rev 7105)
@@ -224,7 +224,6 @@
,inputtext_parents_cannot_contain_clip: false
,minimize_opacity_changes: false
,set_height_for_multiline_inputtext: false
- ,ie_offset_position_by_2: false
,ie_opacity: false
,text_measurement_use_insertadjacenthtml: false
}
@@ -285,11 +284,6 @@
// multiline inputtext height must be set directly - height: 100%
does not work. See LPP-4119
this.quirks['set_height_for_multiline_inputtext'] = true;
- if (Lz.__BrowserDetect.version > 6) {
- // IE 7 offsets div positions by 2 px. See LPP-4176.
- this.quirks['ie_offset_position_by_2'] = true;
- }
-
// text size measurement uses insertAdjacentHTML()
this.quirks['text_measurement_use_insertadjacenthtml'] = true;
} else if (Lz.__BrowserDetect.isSafari) {
@@ -1266,10 +1260,6 @@
box = el.getBoundingClientRect();
var scrollTop = document.documentElement.scrollTop ||
document.body.scrollTop;
var scrollLeft = document.documentElement.scrollLeft ||
document.body.scrollLeft;
- if (this.quirks['ie_offset_position_by_2']) {
- scrollLeft -= 2;
- scrollTop -= 2;
- }
return {x: box.left + scrollLeft, y: box.top + scrollTop};
} else if (document.getBoxObjectFor) { // gecko
box = document.getBoxObjectFor(el);
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins