View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000533 | SOGo | Web Calendar | public | 2010-03-31 16:21 | 2015-10-23 19:15 |
| Reporter | Jay Oster | Assigned To | ludovic | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | nightly v2 | ||||
| Target Version | 3.0.0 | Fixed in Version | 3.0.0 | ||
| Summary | 0000533: 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 It's also helpful to note that removing those empty table columns from every | ||||
| Tags | No tags attached. | ||||
|
2010-03-31 16:21
|
|
|
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? |
|
|
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. |
|
|
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%; }
|
|
Even better than :last-child, I used the ancestor selector. At the least, this takes care of the immediate problem. Thanks again! |
|
|
Thanks for the patch. It's in revision 40deeaf6256561ecd87e0e8e099b7ae23668d145. But I keep the ticket opened since we need to rewrite this widget .. |
|
|
That widget has been dropped in v3, closing. |
|
| 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 |
|
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 |