Adam Shaw 10 лет назад
Родитель
Сommit
c35973e421
3 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      src/agenda/AgendaView.js
  2. 1 1
      src/common/Grid.js
  3. 1 1
      src/util.js

+ 1 - 0
src/agenda/AgendaView.js

@@ -405,6 +405,7 @@ var AgendaView = FC.AgendaView = View.extend({
 
 
 // Methods that will customize the rendering behavior of the AgendaView's timeGrid
+// TODO: move into TimeGrid
 var agendaTimeGridMethods = {
 
 

+ 1 - 1
src/common/Grid.js

@@ -518,7 +518,7 @@ var Grid = FC.Grid = Class.extend({
 	// Computes HTML classNames for a single-day element
 	getDayClasses: function(date) {
 		var view = this.view;
-		var today = view.calendar.getNow().stripTime();
+		var today = view.calendar.getNow();
 		var classes = [ 'fc-' + dayIDs[date.day()] ];
 
 		if (

+ 1 - 1
src/util.js

@@ -123,7 +123,7 @@ function undistributeHeight(els) {
 function matchCellWidths(els) {
 	var maxInnerWidth = 0;
 
-	els.find('> *').each(function(i, innerEl) {
+	els.find('> span').each(function(i, innerEl) {
 		var innerWidth = $(innerEl).outerWidth();
 		if (innerWidth > maxInnerWidth) {
 			maxInnerWidth = innerWidth;