Closed
Bug 167115
Opened 23 years ago
Closed 20 years ago
tree/listbox does't work with background styles (-image, -attachment) correctly
Categories
(Core Graveyard :: Skinability, defect)
Core Graveyard
Skinability
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: alfredkayser, Assigned: bugs)
References
()
Details
Attachments
(2 files, 1 obsolete file)
|
125.04 KB,
image/jpeg
|
Details | |
|
4.43 KB,
patch
|
bryner
:
superreview+
|
Details | Diff | Splinter Review |
If you define the style of a listbox or a tree (it goes for both of them) to
have a background-image, and then scroll the listbox or when the listbox
is updated (like in the folderpane of messenger), the background-image is
not drawn/updated correctly.
The screen is scrolled up/down but the background should stay.
Either listbox/tree should not support background-image at all, or
it should support it correctly.
Comment 1•23 years ago
|
||
skin mentioned for testing is now out of date...
reporter (Alfred): can you reproduce this bug with a recent build of mozilla
(for example, 1.2.1)? if so, please comment again with details. if not, please
resolve this bug as WORKSFORME. thanks.
| Reporter | ||
Comment 2•23 years ago
|
||
in userChrome.css put the following:
window, dialog, wizard, page, popup, menupopup {
background-image: url("ladybugfarm_1024.png") !important;
}
And then scroll the 'bookmark list' in the sidebar.
This problem appears in most themes, but specifically the 'Bricks'
theme at deskmod.org shows it painfully.
| Reporter | ||
Comment 3•21 years ago
|
||
Problem re-verified and still exists in Mozilla Suite 2004012209:
in userChrome.css put the following:
tree {
background-image: url("grain_08.jpg") !important;
}
And then scroll the 'bookmark list' or 'history' in the sidebar.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 4•21 years ago
|
||
Also '-attachment' is not adhered to.
When 'background-attachment: fixed' is set as a style
for the tree or listbox, still the background is scrolled with the contents...
Summary: tree/listbox don't work with background-image style correctly → tree/listbox does't work with background styles (-image, -attachment) correctly
| Reporter | ||
Comment 5•21 years ago
|
||
This patch makes the 'tree' code to force a complete repaint
if scrolling on transparent background or a background image.
Further some little cleanup of an unused PRBool argument.
| Reporter | ||
Updated•21 years ago
|
Attachment #142455 -
Flags: review?(bzbarsky)
Comment 6•21 years ago
|
||
Comment on attachment 142455 [details] [diff] [review]
Patch to mozilla\layout\xul\base
I'm not qualified to review this code... at least not if you want a review any
time soonish.... resetting request to someone who actually knows something
about this file.
Attachment #142455 -
Flags: review?(bzbarsky) → review?(varga)
Comment 7•21 years ago
|
||
Comment on attachment 142455 [details] [diff] [review]
Patch to mozilla\layout\xul\base
looks good
r=varga
Attachment #142455 -
Flags: review?(varga) → review+
| Reporter | ||
Updated•21 years ago
|
Attachment #142455 -
Flags: superreview?(bryner)
| Reporter | ||
Updated•20 years ago
|
Attachment #142455 -
Flags: superreview?(bryner)
| Reporter | ||
Comment 8•20 years ago
|
||
Moved the 'rowHeightAsPixels' calculation to the else branch.
Also, only get the 'backgroundStyle' only once.
Attachment #142455 -
Attachment is obsolete: true
| Reporter | ||
Updated•20 years ago
|
Attachment #172257 -
Flags: superreview?(bryner)
Updated•20 years ago
|
Attachment #172257 -
Flags: superreview?(bryner) → superreview+
Checked in for alfredkayser -
Checking in nsListBoxBodyFrame.cpp;
/cvsroot/mozilla/layout/xul/base/src/nsListBoxBodyFrame.cpp,v <--
nsListBoxBodyFrame.cpp
new revision: 1.48; previous revision: 1.47
done
Checking in nsListBoxBodyFrame.h;
/cvsroot/mozilla/layout/xul/base/src/nsListBoxBodyFrame.h,v <--
nsListBoxBodyFrame.h
new revision: 1.14; previous revision: 1.13
done
Checking in tree/src/nsTreeBodyFrame.cpp;
/cvsroot/mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp,v <--
nsTreeBodyFrame.cpp
new revision: 1.238; previous revision: 1.237
done
| Reporter | ||
Comment 10•20 years ago
|
||
Marking fixed, as the scrolling of listboxes and trees now do work correctly!
Thanks!
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•