Author: max
Date: 2008-03-17 18:47:45 -0700 (Mon, 17 Mar 2008)
New Revision: 8297
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as
Log:
Change 20080314-maxcarlson-L by [EMAIL PROTECTED] on 2008-03-14 12:54:25 PDT
in /Users/maxcarlson/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Reset both horizontal and vertical scrolling after setFocus()
New Features:
Bugs Fixed: LPP-5450 - Cursor position moves when clicking on inputtext
containing text longer than its width
Technical Reviewer: promanik
QA Reviewer: [EMAIL PROTECTED]
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details: Reset scrolling after setFocus()
Tests: See LPP-5450.
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as
2008-03-17 18:01:35 UTC (rev 8296)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as
2008-03-18 01:47:45 UTC (rev 8297)
@@ -189,14 +189,15 @@
LzInputTextSprite.prototype.select = function ( ){
var sf = targetPath(this.__LZtextclip);
- // calling setFocus() seems to bash the scroll value, so save it
+ // calling setFocus() bashes the scroll and hscroll values, so save them
var myscroll = this.__LZtextclip.scroll;
+ var myhscroll = this.__LZtextclip.hscroll;
if( Selection.getFocus() != sf ) {
Selection.setFocus( sf );
}
- this.__LZtextclip.hscroll = 0;
- // restore the scroll value
+ // restore the scroll and hscroll values
this.__LZtextclip.scroll = myscroll;
+ this.__LZtextclip.hscroll = myhscroll;
this.__LZtextclip.background = false;
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins