Closed Bug 715925 Opened 13 years ago Closed 12 years ago

Options inside optgroup should show up as indented in select helper popup

Categories

(Firefox for Android Graveyard :: General, defect, P4)

ARM
Android
defect

Tracking

(firefox11- fixed, firefox12+ fixed)

VERIFIED FIXED
Firefox 12
Tracking Status
firefox11 - fixed
firefox12 + fixed

People

(Reporter: martijn.martijn, Assigned: wesj)

References

()

Details

(Keywords: testcase)

Attachments

(2 files, 1 obsolete file)

See testcase from url, which comes from bug 685197.

As you can see, the options "Three", "Four", "Five" are indented, because they are inside the "test" optgroup.
However, they don't show that way in the select helper popup (the popup that appears when tapping on the select).
The stock browser does show them as indented.
Summary: Options inside optgroupd should show up as indented in select helper popup → Options inside optgroup should show up as indented in select helper popup
Assignee: nobody → wjohnston
Priority: -- → P4
Attached image Screenshot
Ahh. Yeah, I don't really like how the stock browser presents these, so I wasn't trying to match their style. But we do need to do something so that users can tell which items are in the optgroup, and which aren't.
Attached patch Patch (obsolete) — Splinter Review
Simple solution. We could do a separate layout or something if we think its needed?
Attachment #591196 - Flags: review?(sriram)
Comment on attachment 591196 [details] [diff] [review]
Patch

Review of attachment 591196 [details] [diff] [review]:
-----------------------------------------------------------------

setPadding's unit is pixels and not in dpi. Using pixels and not taking dpi into account makes me scary.
Please see if an expandable list view can do the trick. If not, try using "density" from "DeviceManager" metrics.
Attachment #591196 - Flags: review?(sriram) → review-
Attached patch Patch v2Splinter Review
Ahh. Good catch. So this does the conversion from dip to pixels for us. I looked at using an ExpandableListView instead. That would give us the ability to open and close groups of items, but wouldn't automatically fix this.

We'd have to create a special layout for these items, and to do it right we'd have to implement it for single select lists, multiselect lists, and context menu like lists. I don't want to have to manage separate layouts for every permutation possible here I think.
Attachment #591196 - Attachment is obsolete: true
Attachment #591219 - Flags: review?(sriram)
Comment on attachment 591219 [details] [diff] [review]
Patch v2

Review of attachment 591219 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good to me.
Attachment #591219 - Flags: review?(sriram) → review+
https://hg.mozilla.org/mozilla-central/rev/17f835ac21d3
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → Firefox 12
Comment on attachment 591219 [details] [diff] [review]
Patch v2

[Approval Request Comment]
Regression caused by (bug #): bug 695485
User impact if declined: ui can not make sense at times
Testing completed (on m-c, etc.): landed jan 24
Risk to taking this patch (and alternatives if risky): very low. this is odd to run into anyway
Attachment #591219 - Flags: approval-mozilla-aurora?
Verified fixed in current Native trunk build.
Status: RESOLVED → VERIFIED
Comment on attachment 591219 [details] [diff] [review]
Patch v2

[Triage Comment]
Mobile only - approved for Aurora.
Attachment #591219 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: