Closed
Bug 40196
Opened 25 years ago
Closed 25 years ago
Images in btn controls in tables not tiling correctly
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: rods, Assigned: dcone)
References
Details
(Whiteboard: [nsbeta2+] [6/15] fix in tree)
Attachments
(1 file)
|
1.83 KB,
text/html
|
Details |
Load the attachment and notice how only the 4th button looks correct. The other
have an extra pixel being drawn on the right.
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Comment 2•25 years ago
|
||
Nominating for nsbeta2 because of visual badness
Keywords: nsbeta2
Target Milestone: --- → M16
| Reporter | ||
Comment 3•25 years ago
|
||
Also, note that if you remove or comment out the
"background-repeat:no-repeat;" style property it does tile well at all. Also,
the tiled image "arrow.gif" is 7x4 pixels.
| Assignee | ||
Comment 4•25 years ago
|
||
Is this a regression or a new feature.
| Assignee | ||
Comment 5•25 years ago
|
||
I get all blank buttons. The background image does not draw.
| Assignee | ||
Comment 6•25 years ago
|
||
I can't reproduce.. I don't get background images at all, or combo boxes at all,
they look like checkbox buttons.
Assignee: dcone → rods
| Reporter | ||
Comment 7•25 years ago
|
||
Sorry, save the attachment to the mozilla/.../bin/res/samples the "arrow.gif"
should then be picked up. If not the arrow.gif is in the "res" directory and you
can copy it up to the samples directory and that will definitiely work.
Assignee: rods → dcone
| Assignee | ||
Comment 8•25 years ago
|
||
Found the problem, low risk fix.
Have fix in hand, two line fix in nsRenderingContextWin.cpp
Status: NEW → ASSIGNED
Whiteboard: Fix in tree
| Reporter | ||
Comment 9•25 years ago
|
||
The comment "two line fix" really means "very low risk"
| Assignee | ||
Updated•25 years ago
|
Target Milestone: M16 → M17
| Assignee | ||
Updated•25 years ago
|
Target Milestone: M17 → M16
| Assignee | ||
Comment 10•25 years ago
|
||
nsRendeirngContextWin::DrawTile()
// pop aX1 and aY1 onto a pixel boundary
aX1 = aX0 + (((aX1-aX0)/aWidth)*aWidth);
aY1 = ay0 + (((aY1-aY0)/aHeight)*aHeight);
Whiteboard: Fix in tree → fix in tree
| Assignee | ||
Comment 12•25 years ago
|
||
The fix puts the adds in an error for aX1 and aY1.
Line 2848
// convert output platform, but no translation.. just scale
orgX = aX0;
orgY = aY0;
orgWidth = aX1 - aX0;
orgHeight = aY1 - aY0;
mTranMatrix->TransformCoord(&aX0,&aY0,&aWidth,&aHeight);
mTranMatrix->TransformCoord(&orgX,&orgY,&orgWidth,&orgHeight);
aX1 = aX0 + orgWidth;
aY1 = aY0 + orgHeight;
| Assignee | ||
Comment 13•25 years ago
|
||
Checked in changes.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•