Skip to main content
Participating Frequently
March 24, 2008
Question

When is M3? I need fractional scroll positions badly...

  • March 24, 2008
  • 11 replies
  • 1151 views
When is M3? I need fractional scroll positions on the List control badly... Is there beta/dev code or a third-party subclass with this functionality?

The only thing I could find was the following, but when is the deadline for M3? I really, really need fractional scrolling AND the advanced functionality of List. (I also need variable row height).
http://opensource.adobe.com/wiki/display/flexsdk/Flex+3

List and Data Effects

Planned milestone: M3

Enhance the usability and visual appeal of some of the List-based components (List, TileList, DataGrid) by adding more animation support.

* Smooth scrolling with fractional scroll positions
* Effects that occur when data changes

I also found this thread, but no good information.
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg67093.html
This topic has been closed for replies.

11 replies

Participating Frequently
August 24, 2008
<div class=Section1><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>Please file a bug with a simple test case.<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><div><br /><br /><div class=MsoNormal align=center style='text-align:center'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'><br /><br /><hr size=2 width="100%" align=center tabindex=-1><br /><br /></span></font></div><br /><br /><p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;<br />font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2<br />face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> siva2cu<br />[mailto:member@adobeforums.com] <br><br /><b><span style='font-weight:bold'>Sent:</span></b> Saturday, August 23, 2008<br />10:14 PM<br><br /><b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">flexsdk-dev@adobeforums.com</st1:PersonName><br><br /><b><span style='font-weight:bold'>Subject:</span></b> Re: When is M3? I need<br />fractional scroll positions badly...</span></font><o:p></o:p></p><br /><br /></div><br /><br /><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:<br />12.0pt'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>A new message was posted<br />by siva2cu in <br><br /><br><br /><b><span style='font-weight:bold'>Developers</span></b> --<br><br />  When is M3? I need fractional scroll positions badly...<br><br /><br><br />In datagrid, i rendered combobox in columns till i got vertical scroll in<br />datagrid. but the problem is wherever i select combobox in datagrid<br />subsequently, datagrid is autoscrolling. please look at this problem and kindly<br />give me solution. <br><br /><br><br />Thanks, <br><br />Sivakumar.S <o:p></o:p></span></font></p><br /><br /><div class=MsoNormal><font size=3 face="Times New Roman"><span<br />style='font-size:12.0pt'><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></span></font></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b4c611/9">When is M3? I need<br />fractional scroll positions badly...</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b4c611!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></span></font></p><br /><br /></div>
Participant
August 24, 2008
In datagrid, i rendered combobox in columns till i got vertical scroll in datagrid. but the problem is wherever i select combobox in datagrid subsequently, datagrid is autoscrolling. please look at this problem and kindly give me solution.

Thanks,
Sivakumar.S
Participating Frequently
March 28, 2008
<div class=Section1><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>It is best if you do so.  No hurry, it won&#8217;t<br />get fixed for a while anyway.<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><div><br /><br /><div class=MsoNormal align=center style='text-align:center'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'><br /><br /><hr size=2 width="100%" align=center tabindex=-1><br /><br /></span></font></div><br /><br /><p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;<br />font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2<br />face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Nathanael Jones<br />[mailto:member@adobeforums.com] <br><br /><b><span style='font-weight:bold'>Sent:</span></b> Friday, March 28, 2008 8:57<br />AM<br><br /><b><span style='font-weight:bold'>To:</span></b> flexsdk-dev@adobeforums.com<br><br /><b><span style='font-weight:bold'>Subject:</span></b> Re: When is M3? I need<br />fractional scroll positions badly...</span></font><o:p></o:p></p><br /><br /></div><br /><br /><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:<br />12.0pt'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>A new message was posted<br />by Nathanael Jones in <br><br /><br><br /><b><span style='font-weight:bold'>Developers</span></b> --<br><br />  When is M3? I need fractional scroll positions badly...<br><br /><br><br />Could you file the bug report? I'll see what I can do with getMeasuringRenderer<br />Monday. This has been a hectic week! <o:p></o:p></span></font></p><br /><br /><div class=MsoNormal><font size=3 face="Times New Roman"><span<br />style='font-size:12.0pt'><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></span></font></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b4c611/7">When is M3? I need<br />fractional scroll positions badly...</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b4c611!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></span></font></p><br /><br /></div>
Participating Frequently
March 28, 2008
Could you file the bug report? I'll see what I can do with getMeasuringRenderer Monday. This has been a hectic week!
Participating Frequently
March 25, 2008
<div class=Section1><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>Yuck.  Looks like List pads left and right<br />when making rows, but not when measuring.  Please file a bug.<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>You might be able to swap in a different<br />measuringRenderer by overriding mx_internal getMeasuringRenderer.<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><div><br /><br /><div class=MsoNormal align=center style='text-align:center'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'><br /><br /><hr size=2 width="100%" align=center tabindex=-1><br /><br /></span></font></div><br /><br /><p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;<br />font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2<br />face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Nathanael Jones<br />[mailto:member@adobeforums.com] <br><br /><b><span style='font-weight:bold'>Sent:</span></b> Tuesday, March 25, 2008 3:10<br />PM<br><br /><b><span style='font-weight:bold'>To:</span></b> flexsdk-dev@adobeforums.com<br><br /><b><span style='font-weight:bold'>Subject:</span></b> Re: When is M3? I need<br />fractional scroll positions badly...</span></font><o:p></o:p></p><br /><br /></div><br /><br /><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:<br />12.0pt'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>A new message was posted<br />by Nathanael Jones in <br><br /><br><br /><b><span style='font-weight:bold'>Developers</span></b> --<br><br />  When is M3? I need fractional scroll positions badly...<br><br /><br><br />I'm using a copy of ListItemRenderer - If the IUTextField has<br />ignorePadding=false, then padding is applied twice. If true, then padding is<br />only applied once. Somehow List is applying the padding also? I'm not seeing<br />what you describe - ListItemRenderer has ignorePadding=true and has no padding<br />logic built in. <o:p></o:p></span></font></p><br /><br /><div class=MsoNormal><font size=3 face="Times New Roman"><span<br />style='font-size:12.0pt'><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></span></font></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b4c611/5">When is M3? I need<br />fractional scroll positions badly...</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b4c611!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></span></font></p><br /><br /></div>
Participating Frequently
March 25, 2008
I'm using a copy of ListItemRenderer - If the IUTextField has ignorePadding=false, then padding is applied twice. If true, then padding is only applied once. Somehow List is applying the padding also? I'm not seeing what you describe - ListItemRenderer has ignorePadding=true and has no padding logic built in.
Participating Frequently
March 25, 2008
<div class=Section1><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>For performance reasons, the List handles<br />paddingTop/Bottom, and the renderer handles paddingLeft/Right.  If you factor<br />paddingLeft/Right into the renderer&#8217;s measuredWidth, it should work out.<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>It may also be true that you&#8217;re<br />running into the wordwrapping issue where you have to fix the width of the text<br />widgets based on the renderer&#8217;s layout and the renderer&#8217;s<br />explicitWidth property (which is set by the List before calling measure() on<br />the renderer).<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><div><br /><br /><div class=MsoNormal align=center style='text-align:center'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'><br /><br /><hr size=2 width="100%" align=center tabindex=-1><br /><br /></span></font></div><br /><br /><p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;<br />font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2<br />face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Nathanael Jones<br />[mailto:member@adobeforums.com] <br><br /><b><span style='font-weight:bold'>Sent:</span></b> Tuesday, March 25, 2008 6:26<br />AM<br><br /><b><span style='font-weight:bold'>To:</span></b> flexsdk-dev@adobeforums.com<br><br /><b><span style='font-weight:bold'>Subject:</span></b> Re: When is M3? I need<br />fractional scroll positions badly...</span></font><o:p></o:p></p><br /><br /></div><br /><br /><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:<br />12.0pt'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>A new message was posted<br />by Nathanael Jones in <br><br /><br><br /><b><span style='font-weight:bold'>Developers</span></b> --<br><br />  When is M3? I need fractional scroll positions badly...<br><br /><br><br />Thanks. I'm running into (I think) a bug in measureHeightOfItems - It doesn't<br />seem to be factoring in paddingLeft and paddingRight, just using<br />listContent.width. This throws the measure height off since the text in the<br />measuring renderer wraps differently. <br><br /><br><br />Is there an easy fix, or will I need to re-implement measureHeightOfItems and<br />its dependencies (since getMeasuringRenderer and setupRendererFromData are<br />private)? <o:p></o:p></span></font></p><br /><br /><div class=MsoNormal><font size=3 face="Times New Roman"><span<br />style='font-size:12.0pt'><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></span></font></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b4c611/3">When is M3? I need<br />fractional scroll positions badly...</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b4c611!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></span></font></p><br /><br /></div>
Participating Frequently
March 25, 2008
Thanks. I'm running into (I think) a bug in measureHeightOfItems - It doesn't seem to be factoring in paddingLeft and paddingRight, just using listContent.width. This throws the measure height off since the text in the measuring renderer wraps differently.

Is there an easy fix, or will I need to re-implement measureHeightOfItems and its dependencies (since getMeasuringRenderer and setupRendererFromData are private)?
Participating Frequently
March 24, 2008
<div class=Section1><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>I would not reimplement scrollVertically.<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>What is going on is that there is always<br />some row fixed at the top of listContent.  ScrollVertically changes which row<br />that is.  The code I added shifts the position of listContent so that it is a<br />fractional row offset.  If you want scrolling to tween, I would probably let<br />scrollVertically do its thing and then tween the position of listContent.  You&#8217;ll<br />see logic around our selection tweens that know a tween is in progress, cancel<br />the tween and start a new one.  You&#8217;ll need to do the same for when<br />someone is pounding on the scrollbar arrows.<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'>-Alex<o:p></o:p></span></font></p><br /><br /><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:<br />10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p><br /><br /><div><br /><br /><div class=MsoNormal align=center style='text-align:center'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'><br /><br /><hr size=2 width="100%" align=center tabindex=-1><br /><br /></span></font></div><br /><br /><p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;<br />font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2<br />face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Nathanael Jones<br />[mailto:member@adobeforums.com] <br><br /><b><span style='font-weight:bold'>Sent:</span></b> Monday, March 24, 2008 11:52<br />AM<br><br /><b><span style='font-weight:bold'>To:</span></b> flexsdk-dev@adobeforums.com<br><br /><b><span style='font-weight:bold'>Subject:</span></b> Re: When is M3? I need<br />fractional scroll positions badly...</span></font><o:p></o:p></p><br /><br /></div><br /><br /><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:<br />12.0pt'><o:p> </o:p></span></font></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>A new message was posted<br />by Nathanael Jones in <br><br /><br><br /><b><span style='font-weight:bold'>Developers</span></b> --<br><br />  When is M3? I need fractional scroll positions badly...<br><br /><br><br />Actually, I just finished reading your code :) - I found it 10 minutes ago. <br><br /><br><br />My situation requires variable row heights, but I think I can get by without<br />full smooth scrolling support, as long as I can animate scrolling between two<br />verticalScrollPosition values. <br><br /><br><br />Should I try re-implementing the scrollVertically function with tweens? <br><br /><br><br />ListBase and List are large classes, and I haven't spend the time to commit<br />their code to memory and fully understand everything related to scrolling. <br><br /><br><br />Would that work? Are actual x/y coordinates write-only? Would tweening them<br />asynchronously from scrollVertically be safe? <o:p></o:p></span></font></p><br /><br /><div class=MsoNormal><font size=3 face="Times New Roman"><span<br />style='font-size:12.0pt'><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></span></font></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'><font size=3<br />face="Times New Roman"><span style='font-size:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b4c611/1">When is M3? I need<br />fractional scroll positions badly...</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b4c611!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></span></font></p><br /><br /></div>
Participating Frequently
March 24, 2008
Actually, I just finished reading your code :) - I found it 10 minutes ago.

My situation requires variable row heights, but I think I can get by without full smooth scrolling support, as long as I can animate scrolling between two verticalScrollPosition values.

Should I try re-implementing the scrollVertically function with tweens?

ListBase and List are large classes, and I haven't spend the time to commit their code to memory and fully understand everything related to scrolling.

Would that work? Are actual x/y coordinates write-only? Would tweening them asynchronously from scrollVertically be safe?