Closed
Bug 46814
Opened 24 years ago
Closed 22 years ago
bottom-right positioned, fixed background image overlap under scrollbar (Background image cut off by scrollbar) [BG]
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
VERIFIED
FIXED
mozilla1.3beta
People
(Reporter: emk, Assigned: caillon)
References
Details
(Keywords: css1, testcase, Whiteboard: [CSS1-5.3.5][CSS1-5.3.6][Hixie-P2])
Attachments
(3 files)
(deleted),
text/html
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
patch
|
dbaron
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Steps to reproduce:
Navigate to the following testcase.
Actual result:
The background image overlaps with the scroll bar.
Expected result:
The background image does not overlap with the scroll bar.
Reproduceable: always.
Occurs on:
Latest cvs build on Windows 2000.
2000072520 nightly build on Windows 2000.
Doesn't occur on:
M16 on Windows 2000.
Reporter | ||
Comment 1•24 years ago
|
||
Updated•24 years ago
|
QA Contact: chrisd → py8ieh=bugzilla
Comment 2•24 years ago
|
||
Confirmed. We are not allowing for scrollbars when drawing the background.
In CSS terms, we are including the scrollbars in the definition of our viewport.
Background issue. Taking QA.
Nominating for nsbeta3. This is a CSS1 compliance issue which works fine in IE5.
Updated•24 years ago
|
Whiteboard: [nsbeta3-]
Comment 3•24 years ago
|
||
Marking Future: We'll get to this after beta3/RTM
Target Milestone: --- → Future
Updated•24 years ago
|
Summary: bottom-right positioned, fixed background image overlap under scrollbar → bottom-right positioned, fixed background image overlap under scrollbar (Background image cut off by scrollbar)
Updated•24 years ago
|
Summary: bottom-right positioned, fixed background image overlap under scrollbar (Background image cut off by scrollbar) → bottom-right positioned, fixed background image overlap under scrollbar (Background image cut off by scrollbar) [BG]
Comment 5•24 years ago
|
||
I ran into a similar problem with a page that looks like this:
1111111111111111111111111111111111111111111
<div style="background-color: #aaccff; position: absolute; width: auto;
height:auto; top: auto; bottom: 40; left: 5; right: 5; ">foo</div>
If you resize the page to make a horizontal scrollbar appear, the padding from
border:5 goes away.
Comment 6•24 years ago
|
||
(Jesse: Note that unitless lengths like that will only work in quirks mode.)
Comment 7•24 years ago
|
||
Thanks.
(Oops, I meant to say bottom:5 in both places, not bottom:40 and border:5.)
Comment 8•24 years ago
|
||
Reassigned to dcone who used to take care of background problems, knowing that
everything that scrolls is evaughan's fault.
Assignee: pierre → dcone
Target Milestone: Future → ---
Updated•24 years ago
|
Status: NEW → ASSIGNED
Comment 9•24 years ago
|
||
I think the placement of this object by style is messing up. The background cod
e will place the image where it is told.. and the position seems to be were the
scroll bar is. Style has to take this into account when it calculates this
position.
Assignee: dcone → pierre
Severity: normal → minor
Status: ASSIGNED → NEW
Target Milestone: --- → Future
Comment 10•23 years ago
|
||
related to bug 44192?
Comment 11•23 years ago
|
||
Correct.
*** This bug has been marked as a duplicate of 44192 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 12•22 years ago
|
||
Related to, maybe, but it's not a priori the same bug (although it is possible
that the same fix would resolve both, that remains to be seen).
Reopening so that we don't lose track of this bug in case the other is fixed
without resolving this issue.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Comment 13•22 years ago
|
||
*** Bug 123238 has been marked as a duplicate of this bug. ***
Comment 14•22 years ago
|
||
Sending to layout.
Assignee: pierre → attinasi
Status: REOPENED → NEW
Component: Style System → Layout
OS: Windows 2000 → All
QA Contact: ian → petersen
Hardware: PC → All
Whiteboard: [nsbeta3-] → [CSS1-5.3.5][CSS1-5.3.6][Hixie-P2]
Target Milestone: Future → ---
Updated•22 years ago
|
Target Milestone: --- → Future
Comment 15•22 years ago
|
||
Comment 16•22 years ago
|
||
*** Bug 184393 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 18•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Attachment #109130 -
Flags: review?(dbaron)
nsPresShell.cpp already has "static GetRootScrollFrame", maybe you can make it
public and use it?
Assignee | ||
Comment 20•22 years ago
|
||
I did notice that but it gets me the wrong frame if we are using a GFX
scrollport. See the comment in my method. The presshell method may want to use
this, but not the other way around. I'd have factored it out if we had an
nsLayoutUtils or similar...
Comment 21•22 years ago
|
||
Comment on attachment 109130 [details] [diff] [review]
Proposed fix
Shouldn't GetRootScrollableFrame at least warn or something if what's passed in
is not a viewport frame?
Are there cases when the scrollbars are on the other side? If so, we should
have ways of detecting it...
Assignee | ||
Comment 22•22 years ago
|
||
We can only have scrollbars on the right or bottom. This may change someday
(and probably should). So yes, I'm aware that my code makes an assumption that
will eventually change, but its my only real option, today.
I can add the warn, which is a good idea. But if its okay with you, I'll keep
my position in David's queue and not attach a new patch for it. :-)
#ifdef DEBUG
else {
NS_WARNING("aRootFrame is not a viewport frame");
}
#endif // DEBUG
Comment 23•22 years ago
|
||
Comment on attachment 109130 [details] [diff] [review]
Proposed fix
sounds good.
Attachment #109130 -
Flags: superreview+
Comment 24•22 years ago
|
||
Comment on attachment 109130 [details] [diff] [review]
Proposed fix
>+ nsCOMPtr<nsIScrollableFrame> scrollableFrame(do_QueryInterface(scrollFrame));
r=dbaron if you change this to
nsIScrollableFrame *scrollableFrame;
CallQueryInterface(scrollFrame, &scrollableFrame);
so that you don't use |nsCOMPtr|s on frames.
Attachment #109130 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 25•22 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 23 years ago → 22 years ago
Resolution: --- → FIXED
Target Milestone: Future → mozilla1.3beta
Comment 26•22 years ago
|
||
Some crashes in PaintBackgroundWithSC started showing up in the 12-23 builds in
talkback. Related?
Comment 27•22 years ago
|
||
I filed the crash sa bug 186752.
Comment 28•22 years ago
|
||
*** Bug 187491 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 29•22 years ago
|
||
*** Bug 188952 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 30•22 years ago
|
||
*** Bug 21774 has been marked as a duplicate of this bug. ***
Comment 31•22 years ago
|
||
*** Bug 201041 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•