Closed Bug 1453233 Opened 6 years ago Closed 6 years ago

Port bug 1437302 to TB: Fix width of textbox[type=number] consumers

Categories

(Thunderbird :: Theme, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 61.0

People

(Reporter: Paenglab, Assigned: Paenglab)

References

Details

Attachments

(2 files)

Bug 1437302 made it possible to define the width of the numberboxes.
Attached patch numberbox.patchSplinter Review
This should fix all numberboxes. Note that they have no more the spinbuttons on the right, althought when they would be visible they are not working.

I changed in the CSS the calculated width to use 24px instead of 22px to to show the max port (65535) fully and not shifting when moving the cursor to the right, at least on incontent prefs. On Mac it wouldn't be necessary as it fits (FX has probably tested it only on Mac).

I've found also an overlay we need to remove but I'll do it after this bug to make it easier to uplift to beta. This still needs work as we changed the file names after the overlay removal.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #8966868 - Flags: review?(jorgk)
So what's the story about the spinbuttons? Why don't they work? Most of the patch is about adding hidespinbuttons="true" everywhere.
The FX bug adds the hidespinbuttons="true" too. Without, they are shown but not clickable...and oddly placed. Instead of the spinbuttons with cursor up/down you can increment/decrement.
Any plans/bug to fix them?
Not that I know. It's probably either you have spinbuttons but no width to define or the other way.
Comment on attachment 8966868 [details] [diff] [review]
numberbox.patch

All the number boxes I looked at were OK: Various in (SMTP) server settings, proxies and cache size. I liked the spinbuttons :-(
Attachment #8966868 - Flags: review?(jorgk) → review+
Keywords: checkin-needed
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/4d405d2392d2
Port bug 1437302 to TB: Fix width of textbox[type=number] consumers. r=jorgk
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
I've landed this now since without the patch but bug 1437302 landed, the number boxes looked bad. However, prior to bug 1437302, the fields where too wide, but the spinbuttons worked, so I don't understand why they went broken and were removed altogether, but basically leaving them in a broken state if anyone still uses them.
Target Milestone: --- → Thunderbird 61.0
The same patch for beta, when the m-c bug will be uplifted.

The only change in this patch are the renamed files from inc.xul to xul.
Attachment #8966916 - Flags: review+
Attachment #8966916 - Flags: approval-comm-beta?
We still have the spinbutton binding, so should we make that work?
Attachment #8966916 - Flags: approval-comm-beta? → approval-comm-beta+
(In reply to Jorg K (GMT+1) from comment #10)
> We still have the spinbutton binding, so should we make that work?

If you know how to do.
Depends on: 1453322
Comment on attachment 8966916 [details] [diff] [review]
numberbox-beta.patch

No uplift for this since it's being backed out in bug 1453322.
Attachment #8966916 - Flags: approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: