]> source.dussan.org Git - nextcloud-server.git/commitdiff
OC-23: [Calendar] Double vertical scrollbar in week view
authorBart Visscher <bartv@thisnet.nl>
Thu, 19 Jan 2012 19:26:07 +0000 (20:26 +0100)
committerBart Visscher <bartv@thisnet.nl>
Thu, 19 Jan 2012 19:50:22 +0000 (20:50 +0100)
apps/calendar/js/calendar.js

index a4e08b56fa2791810455b58218b3fbd544f1ee20..4d0ca3ba650a62aff5eb93a30231239c6e021c3d 100644 (file)
@@ -658,6 +658,12 @@ $(document).ready(function(){
                viewDisplay: function(view) {
                        $('#datecontrol_date').html(view.title);
                        $.get(OC.filePath('calendar', 'ajax', 'changeview.php') + "?v="+view.name);
+                       if (view.name == 'agendaWeek') {
+                               $('#calendar_holder').fullCalendar('option', 'aspectRatio', 0.1);
+                       }
+                       else {
+                               $('#calendar_holder').fullCalendar('option', 'aspectRatio', 1.35);
+                       }
                },
                selectable: true,
                selectHelper: true,