Closed
Bug 262134
Opened 20 years ago
Closed 18 years ago
Set as Desktop Background (wallpaper) gets zoomed (scaled) image dimensions instead of real ones
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
VERIFIED
FIXED
Firefox 3 alpha1
People
(Reporter: carlo, Assigned: ispiked)
References
Details
(Keywords: fixed1.8.1)
Attachments
(2 files)
|
38.61 KB,
image/png
|
Details | |
|
1.29 KB,
patch
|
asaf
:
review+
mconnor
:
approval1.8.1+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Win98; rv:1.7.3) Gecko/20040913 Firefox/0.10 Build Identifier: Mozilla/5.0 (Windows; U; Win98; rv:1.7.3) Gecko/20040913 Firefox/0.10 Having set monitor to resolution 1024x768 (for example), opening a 1024x768 image with the option "resize large images to fit in the browser window" enabled, makes Set As Wallpaper believing that image is smaller than it is. The "Set As Wallpaper" function works right, the only problem is in the preview window. Reproducible: Always Steps to Reproduce: 1. Set 1024x768 as your resolution (it's not related to the bug but only to make this example work) 2. check Firefox preferences, the option "resize large images to fit in the browser window" must be enabled. 3. open a 1024x768 image with Firefox and right click "Set As Wallpaper" 4. the browser misunderstands the real image measures and the preview shows a wallpaper smaller than 1024x768 that doesn't fit the desktop. Actual Results: I'll attach a screen capture that better explains the problem.
| Reporter | ||
Comment 1•20 years ago
|
||
This is the screen capture of the bug.
| Reporter | ||
Comment 2•20 years ago
|
||
Confirmed in Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Comment 3•20 years ago
|
||
Confirmed in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
| Reporter | ||
Comment 4•19 years ago
|
||
Confirmed in Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Comment 5•19 years ago
|
||
Confirmed in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050721 Firefox/1.0+ I used the 1920x1200 version of tbtw and it's "scaled" version was shown in the preview, even though it was set to "center". When at original size in the browser, the preview is much different, only showing the center of the large image. Changing to WinXP (I would make it all but I don't know how it happens on Linux/x86Mac) to show that it happens on the 'latest' version of windows as well.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 98 → Windows XP
Version: unspecified → Trunk
Updated•19 years ago
|
Assignee: firefox → nobody
Summary: Set As Wallpaper gets zoomed image dimension instead of real ones → Set As Wallpaper gets zoomed (scaled) image dimensions instead of real ones
Comment 6•19 years ago
|
||
*** Bug 303768 has been marked as a duplicate of this bug. ***
Comment 7•19 years ago
|
||
With the change in terminology I suggest this bug be renamed to "Set as Desktop Background gets zoomed..."
Updated•19 years ago
|
Summary: Set As Wallpaper gets zoomed (scaled) image dimensions instead of real ones → Set as Desktop Background (wallpaper) gets zoomed (scaled) image dimensions instead of real ones
| Assignee | ||
Comment 8•18 years ago
|
||
When we set the image as the desktop background we use the full size, but here |this._image.width/height| refers to the actual size of the image element (which might be scaled down). This uses the naturalHeight/Width of the image which is irrespective of whether the image is scaled in the browser window or not. (Thanks to biesi for helping with this.)
Comment 9•18 years ago
|
||
Comment on attachment 236021 [details] [diff] [review] Use the actual size of the image when we're doing the preview r=mano.
Attachment #236021 -
Flags: review?(bugs.mano) → review+
| Assignee | ||
Updated•18 years ago
|
OS: Windows XP → All
Hardware: PC → All
Whiteboard: [checkin needed]
Target Milestone: --- → Firefox 3 alpha1
Comment 10•18 years ago
|
||
Checking in setDesktopBackground.js; /cvsroot/mozilla/browser/components/shell/content/setDesktopBackground.js,v <-- setDesktopBackground.js new revision: 1.5; previous revision: 1.4 done Checked in on trunk.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
| Assignee | ||
Comment 11•18 years ago
|
||
Comment on attachment 236021 [details] [diff] [review] Use the actual size of the image when we're doing the preview Low-risk patch for the Set As Desktop Background dialog that makes sure we always use the full height/width of an image when preview it.
Attachment #236021 -
Flags: approval1.8.1?
Comment 12•18 years ago
|
||
Comment on attachment 236021 [details] [diff] [review] Use the actual size of the image when we're doing the preview a=mconnor on behalf of drivers, please get this in ASAP
Attachment #236021 -
Flags: approval1.8.1? → approval1.8.1+
Comment 13•18 years ago
|
||
Checking in setDesktopBackground.js; /cvsroot/mozilla/browser/components/shell/content/setDesktopBackground.js,v <-- setDesktopBackground.js new revision: 1.3.4.2; previous revision: 1.3.4.1 done Checked in on the 1.8.1 branch.
Keywords: fixed1.8.1
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•