Closed Bug 423469 Opened 16 years ago Closed 16 years ago

Theme list can be completely obscured

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9.1b1

People

(Reporter: madhava, Assigned: Natch)

References

Details

Attachments

(4 files, 6 obsolete files)

See attached image.  The preview pane (right side) can be expanded to fill the whole area, completely obscuring the list of themes.  There should probably be a minimum width set for the themes list so that users can't get into this state.
See also related Bug 387999, for when you move the slider the other way.
Product: Firefox → Toolkit
Just needs an appropriate min-width setting
Whiteboard: [good first bug]
Blocks: 450560
Used 230px as the min-width on extensionView, which changes it for addons, themes, plugins, etc.

Also, from the OS I deduced that this needs to be changed on all three?
Attachment #336004 - Flags: review?
Attachment #336004 - Flags: review? → review?(gavin.sharp)
Attachment #336004 - Flags: review?(gavin.sharp) → review?(dtownsend)
Attached patch Patch for this and bug 423469 (obsolete) — Splinter Review
I don't know if this is what's wanted, but here's a patch for both bugs, (and consequently the one about the splitter), but it seems that the collaps=after was intentional?
Attachment #336218 - Flags: review?(dtownsend)
Are both of these patches necessary?
Attached patch New patch, same thing (obsolete) — Splinter Review
New one just takes away width attribute... not necessary since there's a min-width set in css.

(in reply to comment #5)

No, sorry just forgot to obsolesce the other. here's a new one though
Attachment #336004 - Attachment is obsolete: true
Attachment #336218 - Attachment is obsolete: true
Attachment #336360 - Flags: review?(dtownsend)
Attachment #336004 - Flags: review?(dtownsend)
Attachment #336218 - Flags: review?(dtownsend)
Comment on attachment 336360 [details] [diff] [review]
New patch, same thing

The problem with this patch is that it seems to allow the size of the theme preview area to grow beyond the bounds of the window, causing a horizontal scrollbar for the entire dialog which isn't good.

If the preview is too large we should get a scrollbar in the preview area I think, not for the entire window, though I think there is something going on with long text lines no longer wrapping because you've removed the fixed width from the area
Attachment #336360 - Flags: review?(dtownsend) → review-
Attached image OSX screenshot
This is a screenshot of the default add-ons manager window on OSX with the existing patch applied.
Attached image Linux screenshot
Linux goes for the double whammy of two scrollbars
(In reply to comment #9)
> Created an attachment (id=336456) [details]
> Linux screenshot
> 
> Linux goes for the double whammy of two scrollbars

This is most probably because of the min-width not being big enough to fit the elements on Linux... easy fix although the themePreview scrolling issue is still a problem... I'll hopefully get to it some time later today.
Attached patch Some improvement (obsolete) — Splinter Review
This patch proposes the following:

The min-widths put scrollbars in mind (i.e. an extra 5px) so that when the window is too short to show the elements, but still wide enough, only vertical scrollbars show. Resizing the window resizes both the extensionsView and previewImage to their min-widths. If the window is too narrow, one scrollbar shows on the bottmom. Now I added some width on the Linux version, but I don't have a Linux box or a Mac to test either platforms.

(note: IMO the extensionsView box should have a flex=4 or something as it makes more sense to stretch that than to stretch the previewImage, but I left it with flex=1).
Attachment #336360 - Attachment is obsolete: true
Attachment #336762 - Flags: review?(dtownsend)
I'm thinking this might be as good as we can get it. There is still an issue with a full width scrollbar if you shrink the add-ons manager down enough that you don't get with the current set-up, if we could avoid that then we've won.
Attached patch Addresses comment 12 (obsolete) — Splinter Review
I didn't marks the older patch obsolete b/c this one proposes a different style entirely, so I'll leave it up to you to chose which one would be better.

With this the scrolls show up individually for each box, extensionsView and previewImage. However, the min-widths were reduced so that the splitter can be dragged over the boxes albeit not all the way.

I think this is the only way to achieve individual scrollbars, being that any box with a min-width will never overflow unless the min-width is too small to hold its own contents (rather the parent will overflow, causing the window-wide scrollbars), but on the other hand the splitter can only be stopped by min-widths on the elements directly before and after it.

The two remaining patches are either/or.
Attachment #336863 - Flags: review?(dtownsend)
Attached patch Same thing fixes small mistake (obsolete) — Splinter Review
Sorry about the spam, this just evens out the previewImageDeck width on Mac with the other systems.
Attachment #336863 - Attachment is obsolete: true
Attachment #336867 - Flags: review?(dtownsend)
Attachment #336863 - Flags: review?(dtownsend)
Shouldn't this be dependent on bug 431023, after all that just might effect some dimension decisions here as well?
I like the latter approach better, especially since it fixes bug 387999 as well, so I'll land that. I've just made a minor change and increased the min-width on extensionsView back to 245px.
Attachment #336762 - Attachment is obsolete: true
Attachment #336867 - Attachment is obsolete: true
Attachment #336762 - Flags: review?(dtownsend)
Attachment #336867 - Flags: review?(dtownsend)
Attachment #337019 - Flags: review+
Landed: http://hg.mozilla.org/mozilla-central/rev/76d6c5e513ec
Assignee: nobody → highmind63
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug]
Target Milestone: --- → mozilla1.9.1b1
Verified with:

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b1) Gecko/20081007 Firefox/3.1b1 ID:20081007125523

Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1b2pre) Gecko/20081016 Minefield/3.1b2pre
Status: RESOLVED → VERIFIED
The opposite of this bug is bug# 487352.
Depends on: 509242
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: