Ver código fonte

Fix calendar height when rendered in a mobile phone see BT#14791

Julio Montoya 6 anos atrás
pai
commit
4bc9d32872
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      main/template/default/agenda/month.tpl

+ 5 - 0
main/template/default/agenda/month.tpl

@@ -204,8 +204,13 @@ $(document).ready(function() {
     });
 
     FC.views.CustomView = CustomView; // register our class with the view system
+    var height = '';
+    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
+        height = 'auto';
+    }
 
 	var calendar = $('#calendar').fullCalendar({
+        height: height,
 		header: {
 			left: 'today,prev,next',
 			center: 'title',