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)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rods, Assigned: dcone)

References

Details

(Whiteboard: [nsbeta2+] [6/15] fix in tree)

Attachments

(1 file)

Load the attachment and notice how only the 4th button looks correct. The other have an extra pixel being drawn on the right.
Nominating for nsbeta2 because of visual badness
Keywords: nsbeta2
Target Milestone: --- → M16
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.
Is this a regression or a new feature.
I get all blank buttons. The background image does not draw.
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
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
Found the problem, low risk fix. Have fix in hand, two line fix in nsRenderingContextWin.cpp
Status: NEW → ASSIGNED
Whiteboard: Fix in tree
The comment "two line fix" really means "very low risk"
Target Milestone: M16 → M17
Target Milestone: M17 → M16
Blocks: 35307
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
[nsbeta2+] [6/15]
Whiteboard: fix in tree → [nsbeta2+] [6/15] fix in tree
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;
Checked in changes.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed in the June 20th build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: