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: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2023-02-01 19:26:27 +02:00 committed by Alexandre Julliard
parent 3eaf3774ad
commit 9beef3fc5a
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);