R33766 - /trunk/calendar/inc/class.calendar_uiviews.inc.php

Author: ralfbecker
New Revision: 33766

URL: http://www.egroupware.org/viewvc/egroupware?rev=33766&view=rev
Log:

  • Calendar: alternative overlapping columns resulting in equally wide visible parts for unlimited number of columns
  • for equally sized columns, the first one (used for whole day events or non-overlapping events) is fairly small (1/Nth of total width)
  • still open again is problem of events in columns > 1 are not clickable (unless we set a z-index, which has other problems)

Modified:
trunk/calendar/inc/class.calendar_uiviews.inc.php

Modified: trunk/calendar/inc/class.calendar_uiviews.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/calendar/inc/class.calendar_uiviews.inc.php?rev=33766&r1=33765&r2=33766&view=diff

— trunk/calendar/inc/class.calendar_uiviews.inc.php (original)
+++ trunk/calendar/inc/class.calendar_uiviews.inc.php Fri Feb 11 17:50:24 2011
@@ -1412,9 +1412,20 @@
// equal sized columns
$width = 95.0 / count($eventCols);
$left = 2.5 + $n * $width;

  •   	// alternative overlapping columns
    
  •   	if (count($eventCols) == 1)
    
  •   	{
    
  •   		$width = 95;
    
  •   		$left = 2.5;
    
  •   	}
    
  •   	else
    
  •   	{
    
  •   		$width = !$n ? 80 : 50;
    
  •   		$left = $n * (100.0 / count($eventCols));
    
  •   	}
    
  •   	if ($left + $width > 100.0) $width = 100.0 - $left;
      	$html .= $this->eventColWidget($eventCol,$left,$width,$indent."\t",
    
  •   		$owner ? $owner : $this->user);
    
  •   		$owner ? $owner : $this->user);//,20+10*$n);
      }
      $html .= $indent."</div>\n";	// calDayCol
    

The ultimate all-in-one performance toolkit: Intel® Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs