Closed Bug 418599 Opened 16 years ago Closed 8 years ago

Radio and checkbox outlines are too wide

Categories

(Toolkit :: UI Widgets, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rod.whiteley, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4pre) Gecko/2008021904 Minefield/3.0b4pre

The dotted border or outline that indicates focus on a checkbox or radio button extends to the container padding (flex="1") instead of only around the label.  This makes Mozilla applications look subtly weird.

Reproducible: Always

Steps to Reproduce:
1. In Minefield choose Tools - Options - Main
2. Move focus to the checkbox.
3. Move focus to the radio group and select the second radio button.
Actual Results:  
Both the checkbox outline and the radio button outline extend far beyond their labels.

Expected Results:  
4. Choose File - Print... (a system dialog) Compare the Print to file checkbox and the All radio button.  Notice that in each case the outline matches the width of the label, but the mouseover region extends right to the container padding.

In Firefox 2, this bug only affects checkboxes.  Radio buttons are OK.  In Minefield, it affects both checkboxes and radio buttons.

Beware of fixing this in a way that breaks the mouseover region.  The common workaround is for user interface code to place an extra hbox around every checkbox, but this makes the mouseover region wrong.
Confirmed with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4pre) Gecko/2008022008 Minefield/3.0b4pre
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Actually the label itself extends to that width too; I don't know why but the label needs to be flexible otherwise it won't wrap in the multiline case.
Tested in Release - outline for radio and check-boxes is accurately fitted to outline the option
Version 	46.0.1
Build ID 	20160502172042
User Agent 	Mozilla/5.0 (Windows NT 5.1; rv:46.0) Gecko/20100101 Firefox/46.0
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: