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)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla2.0b9
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: erikvvold, Assigned: Unfocused)
References
Details
Attachments
(2 files)
87.74 KB,
image/png
|
Details | |
2.90 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 2•14 years ago
|
||
bug 595317 will probably fix the scrollbar issues, otherwise we generally expect to see a thumbnail version of the screenshot to display
Assignee | ||
Comment 3•14 years ago
|
||
I still think we need max-width/height on the thumbnail. I actually thought that had been added awhile ago, but it wasn't.
Comment 4•14 years ago
|
||
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.
Assignee | ||
Comment 5•14 years ago
|
||
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.
Comment 6•14 years ago
|
||
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.
Comment 7•14 years ago
|
||
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.
Comment 8•14 years ago
|
||
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: --- → ?
Updated•14 years ago
|
blocking2.0: ? → final+
Assignee | ||
Comment 9•14 years ago
|
||
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.
Updated•14 years ago
|
Attachment #496059 -
Flags: review?(dtownsend) → review+
Updated•14 years ago
|
Whiteboard: [has patch]
Comment 10•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Flags: in-litmus-
Resolution: --- → FIXED
Whiteboard: [has patch]
Target Milestone: --- → mozilla2.0b9
Comment 11•14 years ago
|
||
Erik, can you please check the latest nightly if this issue is now fixed for you? Thanks.
Comment 12•14 years ago
|
||
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.
Description
•