Adam Shaw пре 8 година
родитељ
комит
b682283258
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      src/common/View.js

+ 4 - 2
src/common/View.js

@@ -424,7 +424,7 @@ var View = FC.View = Model.extend({
 
 
 	// if dateProfile not specified, uses current
-	executeDateRender: function(dateProfile) {
+	executeDateRender: function(dateProfile, skipScroll) {
 
 		this.setDateProfileForRendering(dateProfile);
 		this.updateTitle();
@@ -439,7 +439,9 @@ var View = FC.View = Model.extend({
 		this.renderBusinessHours(); // might need coordinates, so should go after updateSize()
 		this.startNowIndicator();
 
-		this.addScroll(this.computeInitialDateScroll());
+		if (!skipScroll) {
+			this.addScroll(this.computeInitialDateScroll());
+		}
 
 		this.isDatesRendered = true;
 		this.trigger('datesRendered');