Bug 17165

Summary: Widget needs to subclass wxWindow, not wxScrolledWindow
Product: WebKit Reporter: Kevin Watters <kevinwatters>
Component: WebKit wxAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Widget subclasses wxWindow instead of wxScrolledWindow kevino: review+

Description Kevin Watters 2008-02-03 11:24:32 PST
Widget (and therefore ScrollView) currently inherits from wxScrolledWindow, a class intended to be a simple container for a panel whose virtual area exceeds that of a window on screen.

Since WebKit provides Javascript with means to enable and disable scrollbars as well as scroll the page, Widget needs to perform scrolling at a lower level than wxScrolledWindow.

This results in scrollbars that can't be disabled and difficulty scrolling smoothly, among other issues.
Comment 1 Kevin Watters 2008-02-03 11:25:18 PST
Created attachment 18886 [details]
Widget subclasses wxWindow instead of wxScrolledWindow
Comment 2 Kevin Ollivier 2008-02-03 13:09:01 PST
Comment on attachment 18886 [details]
Widget subclasses wxWindow instead of wxScrolledWindow

This is a much needed fix that stops us from rendering areas outside of the page and works great in my testing. Thanks!
Comment 3 Kevin Ollivier 2008-02-03 13:12:22 PST
Landed in r29948. Thanks! :)