Closed Bug 1496752 Opened 6 years ago Closed 6 years ago

Allow extraDragSpace in title bar

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(thunderbird_esr6063+ fixed, thunderbird64 fixed)

RESOLVED FIXED
Thunderbird 64.0
Tracking Status
thunderbird_esr60 63+ fixed
thunderbird64 --- fixed

People

(Reporter: andy, Assigned: Paenglab)

References

Details

Attachments

(6 files, 1 obsolete file)

Attached image Thunderbird-tabs.png
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.
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.
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
(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.
(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.
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.
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.
Okay, I forgot to add this 40px on Linux because this feature came so late on Linux. :-(
40px is also what FX has.
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)
Attachment #9015581 - Flags: review?(geoff) → review+
I've set leave-open because I'm planning to port bug 1349552.
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
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?
Attached patch Part 1: 1496752-dragspace.patch (obsolete) — Splinter Review
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)
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 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)
(In reply to Jorg K (GMT+2) from comment #19)
> How will users discover that?
OK, via part 2.
(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)
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

:-(
Sorry, forgot to write you need bug 1492962 applied first. I hope it will get review soon.
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)
Attachment #9016440 - Flags: review?(jorgk)
Comment on attachment 9016383 [details] [diff] [review]
Part 2: 1496752-addDragSpaceConfig.patch

So, bug 1492962 landed now.
Attachment #9016383 - Flags: review?(jorgk)
Attachment #9016440 - Flags: review?(jorgk)
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 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 on attachment 9016383 [details] [diff] [review]
Part 2: 1496752-addDragSpaceConfig.patch

Looks good.
Attachment #9016383 - Flags: review?(jorgk) → review+
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+
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
Last two parts landed on TB 65.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: leave-open
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: