javascript - Full calendar fit to container and hide scroll -
i cannot figure out how scale fullcalendar fit it's parent container. want display week view on single page users without need scroll (so review items week).
i'm ok if need make text small, slots height smaller, etc, not sure how dynamically based on size of browser window.
(in calendar i'm using slotminutes:10 , times 8am 10pm
)
jsfiddle fullcalendar: http://jsfiddle.net/bqxyp/27/
there several factors considered.
if want stick having slotminutes
set 10, going quite difficult fit time ranges 8 10 pm on page without manually hacking font size illegible.
if okay increasing slotminutes
attribute 30 or 60, have pretty chance of getting weekly view showing without need scroll.
apart that, there 2 properties use influence dimensions of calendar. first 1 height
. sets pixel value not scale dynamically. second 1 aspectratio
allows define ratio of width height. in other words, aspectratio
value of 2 means try , stretch height double of width (if @ amount of height needed).
i have set example here shows effect of having reasonable slotminutes
value. in opinion, important able achieve need.
Comments
Post a Comment