Closed Bug 61902 Opened 20 years ago Closed 14 years ago

[BTN]<button> should softwrap contents

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: jruderman, Unassigned)

References

()

Details

(Whiteboard: [reflow-refactor])

If a button's text is long (long enough to make the button longer than the 
content area) but contains spaces, the text should be wrapped to make the 
button narrower.
The best way to do this is probably to implement 'inline-block' (once it is
defined) and then define button in terms of it...
Status: NEW → ASSIGNED
Summary: <button> should softwrap contents → [BTN]<button> should softwrap contents
QA Contact Update
QA Contact: bsharma → vladimire
Target Milestone: --- → mozilla1.2
Sounds related: bug 55285, newlines within <button> (and <input type="button">) 
are displayed.
Priority: P3 → P2
Target Milestone: mozilla1.2 → Future
QA Contact: vladimire → tpreston
*** Bug 247580 has been marked as a duplicate of this bug. ***
Assignee: rods → nobody
Status: ASSIGNED → NEW
Depends on: inline-block
OS: Windows 98 → All
QA Contact: tpreston → ian
Hardware: PC → All
*** Bug 279860 has been marked as a duplicate of this bug. ***
button { max-width: 100%; }

in html.css is a simple patch for this.
Not perfect, but much better than now.
Whiteboard: [reflow-refactor]
Re: https://bugzilla.mozilla.org/show_bug.cgi?id=279860 and http://murent.us/firefoxtest.php

Huh. What'dya know. I made the text flow as desired (at least in Firefox 1.5.0.1/Linux). I set the form's width to 100% (inherit didn't work) and set the button's width to inherit.

So. It would seem that neither FORM nor BUTTON properly handle WIDTH.

Does this help narrow the problem?
The testcase in the URL field gets wrapped correctly in a fresh build from just after the reflow branch landed.  For comparison, it created a long horizontal scrollbar in a 2006-12-05 nightly build.

-> FIXED by reflow branch landing.
Status: NEW → RESOLVED
Closed: 14 years ago
Depends on: reflow-refactor
Priority: P2 → --
Resolution: --- → FIXED
Target Milestone: Future → mozilla1.9alpha
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.