mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 726258 - Don't suppress the scrollbar because of a too small size in the scollbar minor direction. r=bz
This commit is contained in:
parent
3806f8dd6c
commit
4ac8d2dffb
@ -442,8 +442,7 @@ nsHTMLScrollFrame::TryLayout(ScrollReflowState* aState,
|
||||
aState->mStyles.mHorizontal == NS_STYLE_OVERFLOW_SCROLL ||
|
||||
scrolledRect.XMost() >= scrollPortSize.width + oneDevPixel ||
|
||||
scrolledRect.x <= -oneDevPixel;
|
||||
if (aState->mInsideBorderSize.height < hScrollbarMinSize.height ||
|
||||
scrollPortSize.width < hScrollbarMinSize.width)
|
||||
if (scrollPortSize.width < hScrollbarMinSize.width)
|
||||
wantHScrollbar = false;
|
||||
if (wantHScrollbar != aAssumeHScroll)
|
||||
return false;
|
||||
@ -455,8 +454,7 @@ nsHTMLScrollFrame::TryLayout(ScrollReflowState* aState,
|
||||
aState->mStyles.mVertical == NS_STYLE_OVERFLOW_SCROLL ||
|
||||
scrolledRect.YMost() >= scrollPortSize.height + oneDevPixel ||
|
||||
scrolledRect.y <= -oneDevPixel;
|
||||
if (aState->mInsideBorderSize.width < vScrollbarMinSize.width ||
|
||||
scrollPortSize.height < vScrollbarMinSize.height)
|
||||
if (scrollPortSize.height < vScrollbarMinSize.height)
|
||||
wantVScrollbar = false;
|
||||
if (wantVScrollbar != aAssumeVScroll)
|
||||
return false;
|
||||
|
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>Testcase for bug 726258</title>
|
||||
<style>
|
||||
html,body{ overflow:hidden; margin:0; padding:0; }
|
||||
p { overflow: auto; white-space: nowrap; font-size: 13px; padding-top:100px; margin-top:-100px; }
|
||||
</style>
|
||||
</head>
|
||||
<p>
|
||||
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
|
||||
</p>
|
11
layout/reftests/scrolling/less-than-scrollbar-height.html
Normal file
11
layout/reftests/scrolling/less-than-scrollbar-height.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>Testcase for bug 726258</title>
|
||||
<style>
|
||||
html,body{ overflow:hidden; margin:0; padding:0; }
|
||||
p { overflow: auto; white-space: nowrap; font-size: 13px; margin-top:0; }
|
||||
</style>
|
||||
</head>
|
||||
<p>
|
||||
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890
|
||||
</p>
|
@ -12,3 +12,4 @@ HTTP == transformed-1.html transformed-1.html?ref
|
||||
HTTP == transformed-1.html?up transformed-1.html?ref
|
||||
== uncovering-1.html uncovering-1-ref.html
|
||||
== uncovering-2.html uncovering-2-ref.html
|
||||
== less-than-scrollbar-height.html less-than-scrollbar-height-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user