周视图中的FullCalendar自动高度 [英] FullCalendar auto-height in week view
问题描述
如果我选择了一个日历模式,它将占用所有的宽度,并且不需要滚动条。保持默认设置 height:auto,aspectRation:1.35
,我看到一个垂直滚动条:
aspectRatio 更改为1,则滚动条消失了,但我在底部看到一个无用的空白区域:
解析方案
b
Fullcalendar v2.1.1
http:/ /jsfiddle.net/3E8nk/560/
contentHeight:'auto',
旧版本的解决方案?
种类hack:ish。这是否适用于您的环境?我使用了其他问题的代码。
http: //jsfiddle.net/3E8nk/558/ $ b
contentHeight:'9999',
code>
I need to have a calendar in week mode which would take all the width it can take and take all the height it needs to not have scrollbars.
If I keep default settings height: auto, aspectRation: 1.35
, I see a vertical scrollbar:
If I change aspectRatio
to 1, scrollbar disappears but I see a useless empty area at the bottom:
Is there any way to fix it except guessing the aspectRatio (which is not a case for me as minTime and maxTime are dynamically changed so the conent height changes)?
Edit:
Fullcalendar v2.1.1
http://jsfiddle.net/3E8nk/560/
contentHeight: 'auto',
Solution for old versions?
Kind of hack:ish. Does this work in your environment? I used the code from your other question.
http://jsfiddle.net/3E8nk/558/
contentHeight: '9999',
这篇关于周视图中的FullCalendar自动高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!