Closed Bug 385503 Opened 18 years ago Closed 18 years ago

'Set Desktop Background' on an image large than screen and position=center preview is too large

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 alpha7

People

(Reporter: alfredkayser, Assigned: dao)

References

()

Details

Attachments

(1 file, 2 obsolete files)

'Set Desktop Background' on an image large than screen and position=center preview is too large. Browse to very large image (see URL above) (larger than your screen size), and select 'Set As Desktop Background' and select 'center' in position. The monitor and the image itself then becomes much larger than the window.
Probably caused by bug 362239.
overflow:hidden and using negative margins places the image in the right position.
Assignee: nobody → alfredkayser
Status: NEW → ASSIGNED
Attachment #269442 - Flags: review?(gavin.sharp)
Attachment #269442 - Attachment is obsolete: true
Attachment #269447 - Flags: review?(gavin.sharp)
Attachment #269442 - Flags: review?(gavin.sharp)
If #monitor needs overflow:hidden (in bug 362239, I wasn't sure why that existed) and an explicit width/height, why not move that to the style sheet? (In return, you can remove the right and bottom margins.) The margins for the image shouldn't be needed, given that they weren't there before bug 362239 was fixed.
I have a stylesheet-only fix for this (the regression from bug 362239, that is). Do you want me to create a patch? Your negative margins actually fix another bug, which is also present in Firefox 2. Do we want to split this into two bugs?
Blocks: 362239
Attached patch patchSplinter Review
Ok, since I caused the regression, I'll just do it. Alfred, I think you're on track with your negative margins. I think fixing the centering deserves a separate bug though.
Assignee: alfredkayser → dao
Attachment #269447 - Attachment is obsolete: true
Attachment #269523 - Flags: review?(gavin.sharp)
Attachment #269447 - Flags: review?(gavin.sharp)
Attachment #269523 - Flags: review?(gavin.sharp) → review?(mano)
Comment on attachment 269523 [details] [diff] [review] patch r=mano, untested though.
Attachment #269523 - Flags: review?(mano) → review+
I did test the Winstripe part, can't test Pinstripe. The monitor images have the same "screen" size (i.e. 153 x 114 px), so it shouldn't make a difference. Alfred, one final note: If you file a bug for the centering fix, please CC me (if you don't, I might file one later on.)
Whiteboard: [checkin needed]
Blocks: 385717
Blocks: 386163
Target Milestone: --- → Firefox 3 beta1
Checked in attachmentt 269523. Checking in browser/themes/pinstripe/browser/setDesktopBackground.css; /cvsroot/mozilla/browser/themes/pinstripe/browser/setDesktopBackground.css,v <-- setDesktopBackground.css new revision: 1.3; previous revision: 1.2 done Checking in browser/themes/winstripe/browser/setDesktopBackground.css; /cvsroot/mozilla/browser/themes/winstripe/browser/setDesktopBackground.css,v <-- setDesktopBackground.css new revision: 1.3; previous revision: 1.2 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Flags: in-litmus?
Litmus Triage Team: tomcat will add the test case for this one.
Litmus Triage Team: stephend will handle this test case.
If we want a Litmus test case for this we need a new sample since the URL now gives a 404 error. Thanks.
Marcia, you just need to use an image that's larger than your monitor's resolution. An image that's larger than 2560x1600 (the resolution of a 30" monitor) would probably work since not many people are going to be running resolutions larger than that. For example: http://flickr.com/photos/johnath/2724738037/sizes/o/.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: