Closed Bug 602059 Opened 14 years ago Closed 14 years ago

Large screenshots not handled well, and/or no scroll bars on details page

Categories

(Toolkit :: Add-ons Manager, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla2.0b9
Tracking Status
blocking2.0 --- final+

People

(Reporter: erikvvold, Assigned: Unfocused)

References

Details

Attachments

(2 files)

I'm working on a addon that adds External addons (user scripts) to the new addon manager. These userscripts are allowed to define screenshots to be used with a @screenshot header key. So the problem is that if a user scripts includes a very large screenshot image, then that will end up taking all of the space on the addon's detail view page, and there are no scroll bars provided when the content overflows the little area it has. See attached screen shot. I'm going to allow user script authors to provide thumbs for the screen shots, but there will be people that ignore that and use images that are too large anyway, and I think that this case ought to be handled by the Addon manger (by setting css max-width and max-height for the screenshots for example), instead of being handled by every extension that adds external addons to the addon manager.
Attached image screen shot of bug
bug 595317 will probably fix the scrollbar issues, otherwise we generally expect to see a thumbnail version of the screenshot to display
I still think we need max-width/height on the thumbnail. I actually thought that had been added awhile ago, but it wasn't.
Well if we do that we either need bug 585069 fixed or we need to switch to using xhtml:img tags there which can have bad XUL layout issues.
Bug 585069 would help tremendously, but I'd rather have a mis-scaled thumbnail, than have a thumbnail that takes up all screen real-estate and forces scrolling to see anything else.
Is there some argument against switching to html:img? Usually that + some clever CSS and/or constraining the image container does the trick in situations like this.
No argument against it, just a warning that it can layout problems and goodness knows we've had enough problems getting scrolling to work right here. When I was doing the initial prototype of the new implementation pane I discovered that in certain situations with a scaled xhtml:img inside XUL a strange effect would occur where the XUL would behave as if the image was still full size.
As given by bug 616634 comment 8 I would like to nominate for blocking. In case of Persona installed from AMO, the details pane will always show large screenshots instead of the previews.
blocking2.0: --- → ?
blocking2.0: ? → final+
Attached patch Patch v1Splinter Review
Restricts screenshots to a maximum of 300px in either direction. Also adjusts the min-width of the description (see 602062 comment 3). And yes, using html:img resulted in a mess.
Assignee: nobody → bmcbride
Status: NEW → ASSIGNED
Attachment #496059 - Flags: review?(dtownsend)
Attachment #496059 - Flags: review?(dtownsend) → review+
Whiteboard: [has patch]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Flags: in-litmus-
Resolution: --- → FIXED
Whiteboard: [has patch]
Target Milestone: --- → mozilla2.0b9
Depends on: 624175
Erik, can you please check the latest nightly if this issue is now fixed for you? Thanks.
As given by Erik on bug 602062 this has been fixed. Marking as verified fixed.
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: