Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364172 - [Scrollbar] Sends "NaN" as "topItemIndex" after _layoutPost
Summary: [Scrollbar] Sends "NaN" as "topItemIndex" after _layoutPost
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.5 M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 10:52 EST by Stephan Leicht Vogt CLA
Modified: 2011-11-22 12:03 EST (History)
1 user (show)

See Also:


Attachments
Patch to fix the described problem (1.06 KB, application/octet-stream)
2011-11-18 10:52 EST, Stephan Leicht Vogt CLA
tbuschto: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Leicht Vogt CLA 2011-11-18 10:52:59 EST
Created attachment 207229 [details]
Patch to fix the described problem

Sometimes _maximum can be the same as idealLength in the method _layoutPost (Line 151 of ScrollBar.js). I didn't find out how that can happen and how I could write a test in ScrollBarTest.js.

I'll attach a fix patch.
Comment 1 Tim Buschtoens CLA 2011-11-22 12:02:54 EST
Committed patch with minor modification to CVS HEAD and added a Test.