Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 378951

Summary: [Client] Widget.js uses dead constant SCROLLBAR_SIZE
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 1.5   
Target Milestone: 1.5 RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Tim Buschtoens CLA 2012-05-09 05:54:46 EDT
In Widget.js#_computeFrameHeight and Widget.js#_computeFrameWidth the value qx.ui.core.Widget.SCROLLBAR_SIZE is used, which can result in NaN as a result. It seems we are mostly just lucky this hasn't lead to any known bugs. Since Scrollable manages the scrollbar size substraction, and native scrollbars are used nowhere else, the entire switch statement could just be removed.
Comment 1 Tim Buschtoens CLA 2012-05-15 08:34:05 EDT
Fixed with commit 58019364cd69ca52b09b2d300208479156f16456