Commit 9beef3fc authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Use Scrollbar_Auto as default for vertical scrollbars.

While Internet Explorer 6 used to default to "always", this hasn't been the case for a long while now. Signed-off-by: 's avatarGabriel Ivăncescu <gabrielopcode@gmail.com>
parent 3eaf3774
......@@ -2268,7 +2268,7 @@ static HRESULT init_browser(GeckoBrowser *browser)
nsres = nsIWebBrowser_QueryInterface(browser->webbrowser, &IID_nsIScrollable, (void**)&scrollable);
if(NS_SUCCEEDED(nsres)) {
nsres = nsIScrollable_SetDefaultScrollbarPreferences(scrollable,
ScrollOrientation_Y, Scrollbar_Always);
ScrollOrientation_Y, Scrollbar_Auto);
if(NS_FAILED(nsres))
ERR("Could not set default Y scrollbar prefs: %08lx\n", nsres);
......
......@@ -363,7 +363,7 @@ static void update_hostinfo(HTMLDocumentObj *This, DOCHOSTUIINFO *hostinfo)
nsres = nsIWebBrowser_QueryInterface(This->nscontainer->webbrowser, &IID_nsIScrollable, (void**)&scrollable);
if(NS_SUCCEEDED(nsres)) {
nsres = nsIScrollable_SetDefaultScrollbarPreferences(scrollable, ScrollOrientation_Y,
(hostinfo->dwFlags & DOCHOSTUIFLAG_SCROLL_NO) ? Scrollbar_Never : Scrollbar_Always);
(hostinfo->dwFlags & DOCHOSTUIFLAG_SCROLL_NO) ? Scrollbar_Never : Scrollbar_Auto);
if(NS_FAILED(nsres))
ERR("Could not set default Y scrollbar prefs: %08lx\n", nsres);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment