mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 23:00:36 +00:00
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:
parent
3eaf3774ad
commit
9beef3fc5a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue