瀏覽代碼

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

Julio Montoya 6 年之前
父節點
當前提交
4bc9d32872
共有 1 個文件被更改,包括 5 次插入0 次删除
  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',