Closed
Bug 1496752
Opened 6 years ago
Closed 6 years ago
Allow extraDragSpace in title bar
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(thunderbird_esr6063+ fixed, thunderbird64 fixed)
RESOLVED
FIXED
Thunderbird 64.0
People
(Reporter: andy, Assigned: Paenglab)
References
Details
Attachments
(6 files, 1 obsolete file)
42.25 KB,
image/png
|
Details | |
48.74 KB,
image/png
|
Details | |
61.07 KB,
image/png
|
Details | |
985 bytes,
patch
|
darktrojan
:
review+
jorgk-bmo
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
5.03 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
10.52 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 Steps to reproduce: Update to Thunderbird 60 Actual results: drawInTitlebar became available – awesome! But it doesn't leave much space to drag the window any more. Expected results: Just like Firefox an horizontal offset for the first tab and the option tabs.extraDragSpace would help.
Firefox removes the offset and the dragSpace when you maximize the window.
Assignee | ||
Comment 4•6 years ago
|
||
Isn't on the right of the tabs enough drag space? In TB there are normally not so much tabs open which completely fills the tabbar. Also when this would be the case there is still free space provided on the right.
Comment 5•6 years ago
|
||
Note - dragging to the left of the leftmost tab would break the historical standard behavior that the first/leftmost tab is fixed/not movable. bug 485268 Actually, I am running 63.0b1 and drag to left of first tab works. But it has a nasty result, a new 3-pane window is opened with two tabs - the leftmost tab and the dragged tab
Comment 6•6 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #4) > Isn't on the right of the tabs enough drag space? In TB there are normally > not so much tabs open which completely fills the tabbar. > My tabbar is 100% full: Mail, Activity Manager, Add-ons, Chat, Calendar, Options. > Also when this would be the case there is still free space provided on the right. I don't understand. On the right I have the two Calendar icons. Without titlebar I couldn't move the window at all.
Assignee | ||
Comment 7•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #6) > I don't understand. On the right I have the two Calendar icons. Without > titlebar I couldn't move the window at all. On the right of the tabs is on the left of the Calendar icons: the drag space is between the tabs and the Calendar icons. And this works here. Also on the right of the Calendar icons is a small space where you can drag.
> a small space where you can drag.
well that's exactly the issue here: a SMALL space.
The small space makes it hard for mouse users, and almost impossible for touch screen users, to grab the window to drag it.
This bug is a usability and accessibility improvement (if solved).
In Firefox an elegant solution was found for that issue, the reasoning behind it is probably documented.
Assignee | ||
Comment 9•6 years ago
|
||
Between the tabs and the Calendar button is a dragspace of minimal 40px. Andy, can you attach a screenshot of your TB window? The top part with titlebar and toolbar is enough.
Reporter | ||
Comment 10•6 years ago
|
||
Reporter | ||
Comment 11•6 years ago
|
||
Richard, I added that screenshot, there is no space left at all. Still, 40px is not very much, and a "grab handle" between tabs and icons doesn't provide much of an affordance.
Assignee | ||
Comment 12•6 years ago
|
||
Okay, I forgot to add this 40px on Linux because this feature came so late on Linux. :-( 40px is also what FX has.
Assignee | ||
Comment 13•6 years ago
|
||
This adds the dragspace when drawInTitlebar is enabled and the menubar is hidden.
Assignee: nobody → richard.marti
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9015581 -
Flags: review?(geoff)
Updated•6 years ago
|
Attachment #9015581 -
Flags: review?(geoff) → review+
Assignee | ||
Comment 14•6 years ago
|
||
I've set leave-open because I'm planning to port bug 1349552.
Keywords: checkin-needed,
leave-open
Comment 15•6 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/641adfb29437 Add minimal dragspace on tabbar when drawInTitlebar=true on Linux. r=darktrojan
Keywords: checkin-needed
Assignee | ||
Comment 16•6 years ago
|
||
Comment on attachment 9015581 [details] [diff] [review] 1496752-dragspace.patch Beta and ESR are also affected.
Attachment #9015581 -
Flags: approval-comm-esr60?
Attachment #9015581 -
Flags: approval-comm-beta?
Assignee | ||
Comment 17•6 years ago
|
||
This adds the extra drag space of 8px like FX does. The space is only added when drawInTitlebar is enabled. The JS code in msgMail3PaneWindow.js is a copy of https://searchfox.org/comm-central/rev/1a3cdb886d501ac08fe3405e70a6b85f51905603/mozilla/browser/base/content/browser-tabsintitlebar.js#315-345 To enable it chsnge mail.tabs.extraDragSpace to true. With part 2 it can be changed in customize window. I separated customize patch to not need to remove it because of the string changes, when we want to uplift to beta or maybe ESR (I have patches when needed).
Attachment #9016381 -
Flags: review?(jorgk)
Assignee | ||
Comment 18•6 years ago
|
||
Added the possibility to enable the drag space in customize window. I stacked both settings for the titlebar to make the dialog too wide.
Attachment #9016383 -
Flags: review?(jorgk)
Comment 19•6 years ago
|
||
Comment on attachment 9016381 [details] [diff] [review] Part 1: 1496752-dragspace.patch Review of attachment 9016381 [details] [diff] [review]: ----------------------------------------------------------------- Looks OK, but one obvious copy/paste error present. ::: mail/app/profile/all-thunderbird.js @@ +476,5 @@ > #endif > > +// Offer additional drag space to the user. The drag space > +// will only be shown if browser.tabs.drawInTitlebar is true. > +pref("mail.tabs.extraDragSpace", false); How will users discover that? ::: mail/base/content/msgMail3PaneWindow.js @@ +1995,5 @@ > + if (window.windowState == window.STATE_MAXIMIZED) > + window.restore(); > + else > + window.maximize(); > +} Oops, look 10 lines above, we have that function already.
Attachment #9016381 -
Flags: review?(jorgk)
Comment 20•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #19) > How will users discover that? OK, via part 2.
Assignee | ||
Comment 21•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #19) > Comment on attachment 9016381 [details] [diff] [review] > Part 1: 1496752-dragspace.patch > > Review of attachment 9016381 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks OK, but one obvious copy/paste error present. > > ::: mail/app/profile/all-thunderbird.js > @@ +476,5 @@ > > #endif > > > > +// Offer additional drag space to the user. The drag space > > +// will only be shown if browser.tabs.drawInTitlebar is true. > > +pref("mail.tabs.extraDragSpace", false); > > How will users discover that? > > ::: mail/base/content/msgMail3PaneWindow.js > @@ +1995,5 @@ > > + if (window.windowState == window.STATE_MAXIMIZED) > > + window.restore(); > > + else > > + window.maximize(); > > +} > > Oops, look 10 lines above, we have that function already. Nothing found there but 7 lines above. ;-) Was a copy paste error.
Attachment #9016381 -
Attachment is obsolete: true
Attachment #9016440 -
Flags: review?(jorgk)
Comment 22•6 years ago
|
||
applying 1496752-dragspace.patch patching file mail/themes/osx/mail/tabmail.css Hunk #2 FAILED at 69 1 out of 2 hunks FAILED -- saving rejects to file mail/themes/osx/mail/tabmail.css.rej :-(
Assignee | ||
Comment 23•6 years ago
|
||
Sorry, forgot to write you need bug 1492962 applied first. I hope it will get review soon.
Comment 24•6 years ago
|
||
Comment on attachment 9016383 [details] [diff] [review] Part 2: 1496752-addDragSpaceConfig.patch Sorry, I don't want these in the queue if I cannot review them.
Attachment #9016383 -
Flags: review?(jorgk)
Updated•6 years ago
|
Attachment #9016440 -
Flags: review?(jorgk)
Assignee | ||
Comment 25•6 years ago
|
||
Comment on attachment 9016383 [details] [diff] [review] Part 2: 1496752-addDragSpaceConfig.patch So, bug 1492962 landed now.
Attachment #9016383 -
Flags: review?(jorgk)
Assignee | ||
Updated•6 years ago
|
Attachment #9016440 -
Flags: review?(jorgk)
Comment 26•6 years ago
|
||
This went thoroughly wrong :-( - With no Target Milestone the uplifts were never seen. The first patch landed on TB 64 in comment #15, so that is already in TB 64 beta.
Target Milestone: --- → Thunderbird 64.0
Comment 27•6 years ago
|
||
Comment on attachment 9015581 [details] [diff] [review] 1496752-dragspace.patch Too late for TB 63 beta, I'll take it to the ESR.
Attachment #9015581 -
Flags: approval-comm-esr60?
Attachment #9015581 -
Flags: approval-comm-esr60+
Attachment #9015581 -
Flags: approval-comm-beta?
Comment 28•6 years ago
|
||
Comment on attachment 9016383 [details] [diff] [review] Part 2: 1496752-addDragSpaceConfig.patch Looks good.
Attachment #9016383 -
Flags: review?(jorgk) → review+
Comment 29•6 years ago
|
||
Comment on attachment 9016440 [details] [diff] [review] Part 1: 1496752-dragspace.patch v2 Mostly ported from FF code, thanks.
Attachment #9016440 -
Flags: review?(jorgk) → review+
Comment 30•6 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/50a2faafdfbf Part 1: Add optional drag space on top of the tabstrip. r=jorgk https://hg.mozilla.org/comm-central/rev/c19d24ccbc89 Part 2: Make it possible to enable the extra drag space in customize window. r=jorgk
Comment 31•6 years ago
|
||
Last two parts landed on TB 65.
Updated•6 years ago
|
Comment 32•6 years ago
|
||
TB 60.3: https://hg.mozilla.org/releases/comm-esr60/rev/2de77be99801019ffe9dadbb05819c811272f26a Simple fix from comment #15.
status-thunderbird64:
--- → fixed
status-thunderbird_esr60:
--- → fixed
tracking-thunderbird_esr60:
--- → 63+
You need to log in
before you can comment on or make changes to this bug.
Description
•