Scroll to start of day in day and week views.
authorJan Schneider <jan@horde.org>
Mon, 5 Jul 2010 12:29:54 +0000 (14:29 +0200)
committerJan Schneider <jan@horde.org>
Mon, 5 Jul 2010 12:29:54 +0000 (14:29 +0200)
kronolith/js/kronolith.js

index 0aa7861..de648c6 100644 (file)
@@ -343,6 +343,8 @@ KronolithCore = {
                                 if ($('kronolithTimeMarker')) {
                                     $('kronolithTimeMarker').show();
                                 }
+                                // Scroll to the work day start time.
+                                $('kronolithView' + locCap).down('.kronolithViewBody').scrollTop = 9 * this[loc + 'Sizes'].height;
                             }
                             this.loadNextView();
                         }.bind(this)