Attendee Dialog: No borders between days in free/busy grid

RESOLVED FIXED in 1.8

Status

Calendar
Dialogs
RESOLVED FIXED
11 years ago
5 years ago

People

(Reporter: Andreas Treumann, Assigned: Paenglab)

Tracking

Details

Attachments

(2 attachments, 3 obsolete attachments)

(Reporter)

Description

11 years ago
REPRODUCTION:
=============

- create a new event
- open the attendee dialog

RESULT:
=======

- there are no borders visible between different days visible

EXPECTED RESULT:
================

- see http://wiki.mozilla.org/Calendar:SMB_Event_Dialog_-_Invite_Attendee
- there are borders between displayed days


REPRODUCIBLE:
=============

- always
Assignee: michael.buettner → nobody
(Reporter)

Updated

10 years ago
Duplicate of this bug: 411166
Component: Lightning Only → Theme
Product: Calendar → Firefox
Target Milestone: --- → Firefox 3
Version: Lightning 0.3 → Trunk
Oh, crap, sorry, moving back, send hatemail to this address.
Component: Theme → Lightning Only
Product: Firefox → Calendar
Target Milestone: Firefox 3 → ---
Version: Trunk → Lightning 0.7
Summary: [Proto] Attendee Dialog, no borders between days in free/busy grid → Attendee Dialog: No borders between days in free/busy grid
Dialog is also present in Sunbird -> Move to Calendar:General
Component: Lightning Only → General
QA Contact: lightning → general

Updated

6 years ago
Component: General → Dialogs
QA Contact: general → dialogs

Updated

6 years ago
Version: Lightning 0.7 → Trunk
Richard, another one for you maybe?
(Assignee)

Comment 5

5 years ago
Created attachment 626377 [details] [diff] [review]
patch

All I can do is giving a border in the header to separate the days.

If a border is needed also below in the grid, then a JS function is needed to tag the last (or first) .freebusy-grid of a day to specially style this item with a border.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #626377 - Flags: review?(philipp)
(Assignee)

Comment 6

5 years ago
Created attachment 626378 [details]
patch in action
Can't you use the :first-child and :last-child pseudo-classes?
(Assignee)

Comment 8

5 years ago
No, because the .freebusy-grid items are not grouped per day. The :first-child is the first in the row (totally on the left) and :last-child is the last on the right when you scroll to the right.
Comment on attachment 626377 [details] [diff] [review]
patch

Something like this should give you the needed classes (please ignore it being on comm-central, that was accidental and has been backed out):

http://hg.mozilla.org/comm-central/raw-rev/1e979716ff6a

On your screenshot the vertical lines have at least 1px offset if you compare header day lines and body lines. I can't test this ATM due to build issues.

If you want to try it with the JS changes, then be my guest. If not, then just push the patch you have (with offset fixed) and leave this bug open.
Attachment #626377 - Flags: review?(philipp) → review+
(Assignee)

Comment 10

5 years ago
(In reply to Philipp Kewisch [:Fallen] from comment #9)
> On your screenshot the vertical lines have at least 1px offset if you
> compare header day lines and body lines. I can't test this ATM due to build
> issues.

I've fixed the line alignment locally.
No problem, the merge is far away. Let's check-in the patch in one piece.

> If you want to try it with the JS changes, then be my guest. If not, then
> just push the patch you have (with offset fixed) and leave this bug open.

I tried the JS change and it works partially:
- The first 'first-in-day' in the grid is on the second .freebusy-grid element. The
  next days are okay.
- I've never seen a 'last-in-day' element.
- first-in-day and last-in-day should also have the freebusy-grid. Then only the
  additional changes have to be added in CSS.
Created attachment 637886 [details] [diff] [review]
Javascript changes - v2

This patch was very nervewracking. I really need to overhaul the attendee dialog code at some point :-)

It should work now, both the grid and the time bar at the top have the first-in-day/last-in-day classes. Let me know if something doesn't work as expected.
(Assignee)

Comment 12

5 years ago
Created attachment 638181 [details] [diff] [review]
patch v2

Philipp, thank you for the JS fixes.

This patch inserts a 2px space between days in title and on the rows on top. The empty rows have no border to separate the days because they have no freebusy-grid items in them.
Attachment #626377 - Attachment is obsolete: true
Attachment #637886 - Attachment is obsolete: true
Attachment #638181 - Flags: review?(philipp)
(Assignee)

Comment 13

5 years ago
Created attachment 638182 [details]
patch in action

Screenshot with Attendees list patch on Windows, Linux and Mac.
Attachment #626378 - Attachment is obsolete: true
(Assignee)

Comment 14

5 years ago
Philipp, have you any time to review this patch?

And can this land also on beta or aurora?
Comment on attachment 638181 [details] [diff] [review]
patch v2

r=philipp. I don't think we should take this down to beta, I'm not sure if there will be another beta before the release.
Attachment #638181 - Flags: review?(philipp)
Attachment #638181 - Flags: review+
Attachment #638181 - Flags: approval-calendar-aurora+
(Assignee)

Comment 16

5 years ago
Pushed to comm-central: http://hg.mozilla.org/comm-central/rev/0cce91ac3be6
and comm-aurora: http://hg.mozilla.org/releases/comm-aurora/rev/84a77b11c96b
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.8
You need to log in before you can comment on or make changes to this bug.