View Issue Details

IDProjectCategoryView StatusLast Update
0000533SOGoWeb Calendarpublic2015-10-23 19:15
ReporterJay Oster Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Versionnightly v2 
Target Version3.0.0Fixed in Version3.0.0 
Summary0000533: Date selector table/CSS breaks display
Description

Version 1.2.1 (@vizzini.inverse.ca 201003311102) (Debian)

When I use the date selector in the WebUI calendar, part of the date numbers get cut off, depending on how the date is selected. I'll attach a screenshot to show the actual result.

Additional Information

I've been using Firefox 3.6.3 on Ubuntu 9.10 (with Firebug) to attempt debugging. Firebug shows that every day [number] in the date selector is its own table, containing one row and two columns. The second column is empty, and the same width as the main column. This is the ultimate cause of the bad display.

Actual results: See attached screenshot.

This is what it looks like. The 31st is styled with "today", the 30th styled
with "selected" and the 29th styled with "mouseover/hover." I think the 29th
shows exactly where the problem area lies, and the 30th shows why it's such a
problem; half of the date is invisible.

It's also helpful to note that removing those empty table columns from every
date (using Firebug) "fixes" this bug.

TagsNo tags attached.

Activities

2010-03-31 16:21

 

SOGo-DateSel.png (12,556 bytes)   
SOGo-DateSel.png (12,556 bytes)   
Jason Oster

Jason Oster

2010-04-07 18:59

reporter   ~0000885

I would like to work on this, but I don't understand how the table is generated. In the template (UIxCalDateSelector.wox) it is referred to with <var:month-title ...> but this is the only instance I can find of "month-title", even with a recursive grep over the source directory. So I'm kind of at a dead end looking for where this whole <table> comes from, and especially that empty table cell.

Can anyone point me in the right direction?

wsourdeau

wsourdeau

2010-04-07 19:08

viewer   ~0000886

It's actually a "WOComponent", that is defined in sope-appserver. Note that we will redesign this in a few months so it might not be worth it. This widget is not well designed. One thing you could do, though, is try to adapt the CSS code.

Jason Oster

Jason Oster

2010-04-07 19:21

reporter   ~0000887

Thanks for the suggestion, wsourdeau. I'll attach a patch which works around the issue. It only works on browsers that support the CSS3 :last-child selector. https://developer.mozilla.org/en/CSS/%3alast-child

2010-04-07 19:28

 

SOGo-date_selector_workaround.patch (494 bytes)   
--- UI/WebServerResources/SchedulerUI.css	7c95b2f76f1f9f7d6a834a92bc499dbf8eb85496
+++ UI/WebServerResources/SchedulerUI.css	68d860dfef8264a2032e711fb6e93e704ef71052
@@ -268,6 +268,12 @@ TABLE#dateSelectorTable TD TABLE TD.dayO
 #dateSelectorTable TABLE TD._selected SPAN
 { color: #fff; }
 
+#dateSelectorTable TD.activeDay + TD,
+#dateSelectorTable TD.inactiveDay + TD,
+#dateSelectorTable TD.dayOfToday + TD
+{ visibility: hidden;
+  display: none; }
+
 TABLE#eventsList
 { width: 100%; }
 
Jason Oster

Jason Oster

2010-04-07 19:29

reporter   ~0000888

Even better than :last-child, I used the ancestor selector. At the least, this takes care of the immediate problem. Thanks again!

francis

francis

2010-04-07 20:41

administrator   ~0000891

Thanks for the patch. It's in revision 40deeaf6256561ecd87e0e8e099b7ae23668d145.

But I keep the ticket opened since we need to rewrite this widget ..

ludovic

ludovic

2015-10-23 19:15

reporter   ~0009043

That widget has been dropped in v3, closing.

Issue History

Date Modified Username Field Change
2010-03-31 16:21 Jay Oster New Issue
2010-03-31 16:21 Jay Oster File Added: SOGo-DateSel.png
2010-04-07 18:59 Jason Oster Note Added: 0000885
2010-04-07 19:08 wsourdeau Note Added: 0000886
2010-04-07 19:21 Jason Oster Note Added: 0000887
2010-04-07 19:28 Jason Oster File Added: SOGo-date_selector_workaround.patch
2010-04-07 19:29 Jason Oster Note Added: 0000888
2010-04-07 20:41 francis Note Added: 0000891
2014-03-09 20:55 ludovic Target Version => 3.0.0
2015-10-23 19:15 ludovic Note Added: 0009043
2015-10-23 19:15 ludovic Status new => closed
2015-10-23 19:15 ludovic Assigned To => ludovic
2015-10-23 19:15 ludovic Resolution open => no change required
2015-10-23 19:15 ludovic Fixed in Version => 3.0.0