Align calendar week view
Categories
(Calendar :: Calendar Frontend, enhancement)
Tracking
(thunderbird_esr78 unaffected)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | unaffected |
People
(Reporter: adrien.rybarczyk, Assigned: Paenglab)
Details
Attachments
(2 files, 2 obsolete files)
1.35 KB,
image/png
|
Details | |
1.89 KB,
patch
|
Paenglab
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
Steps to reproduce:
Be in weekly view.
Actual results:
There is an offset pixel on the alignment.
Bug present in 78 and 90 but the offset is not the same.
Expected results:
The elements are aligned.
Comment hidden (off-topic) |
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
This comes because the width of headerscrollbarspacer
and labelscrollbarspacer
are set 1px wider than the scrollbar width is. Tested on Linux and Windows.
Henry, do you know what could be wrong when the width is calculated here: https://searchfox.org/comm-central/rev/c821090d64c92a05bfc49aba6d5f0d25ad5ff52e/calendar/base/content/calendar-multiday-view.js#1934 ?
Assignee | ||
Comment 3•4 years ago
|
||
I found the issue: we set a margin here https://searchfox.org/comm-central/rev/c821090d64c92a05bfc49aba6d5f0d25ad5ff52e/calendar/base/themes/common/calendar-views.css#558.
Does a function exist that includes in the calculation the margins or do we need to add this margin manually?
Comment 4•4 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #3)
Does a function exist that includes in the calculation the margins or do we need to add this margin manually?
getBoundingClientRect
only returns the border area, you have to add the margin yourself.
This issue should get fixed as a side effect once I get round to Bug 1713130. If this isn't a huge priority to fix soon, you can add the dependency.
Assignee | ||
Comment 5•4 years ago
|
||
Is Bug 1713130 planned to land on TB 91? If not, I'll fix this here.
Comment 6•4 years ago
|
||
I've not got any specific release plan, so go ahead and fix this here
Assignee | ||
Comment 7•4 years ago
|
||
Is this okay like this? I have only basic JS knowledge. So propose a smarter way if where is one.
Comment 8•4 years ago
|
||
Assignee | ||
Comment 9•4 years ago
|
||
I think because we do the styling in our files we don't need to check with regex.
Comment 10•4 years ago
|
||
Assignee | ||
Comment 11•4 years ago
|
||
(In reply to Henry Wilkes [:henry] from comment #10)
I just set the review to
+
to accept it. Not sure if that was right.
Yes, that was right.
Comment 12•4 years ago
|
||
Assignee | ||
Comment 13•4 years ago
|
||
Added a comment that we expect px.
Comment 14•4 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/fc94169f2fda
In week view set the correct scrollbar width for the spacers. r=henry
Description
•