Author: pent
Date: Thu Feb 14 14:09:18 2013
New Revision: 1446184
URL: http://svn.apache.org/r1446184
Log:
Attempted to set vscroll for TextArea - still not 100% correct
Modified:
flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as
Modified:
flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as
URL:
http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as?rev=1446184&r1=1446183&r2=1446184&view=diff
==============================================================================
---
flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as
(original)
+++
flex/asjs/branches/develop/frameworks/as/src/org/apache/flex/html/staticControls/beads/TextAreaBead.as
Thu Feb 14 14:09:18 2013
@@ -132,8 +132,15 @@ package org.apache.flex.html.staticContr
private function textScrollHandler(event:Event):void
{
+ /* This needs work. the calculation is still off.
Reverting to basic
+ values for scrolling and scroll position.
+ */
+ //trace("numLines="+textField.numLines+",
scrollV="+textField.scrollV+", bottom="+textField.bottomScrollV+",
max="+textField.maxScrollV);
+ var visibleLines:int = textField.bottomScrollV -
textField.scrollV + 1;
+ var scrollableLines:int = textField.numLines -
visibleLines + 1;
+ //trace("-- scrollableLines="+scrollableLines+",
visibleLines="+visibleLines);
var vsbm:ScrollBarModel =
ScrollBarModel(vScrollBar.model);
- vsbm.maximum = textField.numLines;
+ vsbm.maximum = textField.numLines;//scrollableLines;
vsbm.value = textField.scrollV;
}