|
|
|
[
Permlink
| « Hide
]
Max Carlson - 20/Feb/08 10:03 AM
Is this actually a regression? It reproduces for me in wafflecone also.
May not be a regression, but it's a real annoying bug nonetheless. Am I supposed mark "Affects version/s" differently so we're not just checking against a previous release?
I've been to other Flash sites that have input text boxes and don't see the bug happening there. The trouble is, I haven't been able to come up with a fix or workaround for this one. I'll keep trying!
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 maxcarlson@Roboto 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: Technical Reviewer: promanik QA Reviewer: pkang@laszlosystems.com Doc Reviewer: (pending) Documentation: Release Notes: Details: Reset scrolling after setFocus() Tests: See 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 Laszlo-checkins@openlaszlo.org http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins (pagan-deities branch build r8434 - mars rc/4.0.11)
Cursor stays at the "y" now |
||||||||||||||||||||||||||||||||||||||||||||||||||||