btex
December 12, 2012, 6:20pm
#1
I am just starting creating a test page with your Scheduler control and I am having a difficulty with getting the scheduler to display full width.
I’m using it on a page inside a Wordpress plugin, and I am setting the div for the scheduler control as follows
div id=“scheduler_here” class=“dhx_cal_container” style=“width:100%; height:100%;”
If I use that, then the scheduler does not display.
If I use a fixed px size, then the scheduler displays correctly. For example, I can use
div id=“scheduler_here” class=“dhx_cal_container” style=“width:800px; height:900px;”
and it will display correctly.
Looking at the source code of the generated page, the div id=“scheduler_here” is inside a Wordpress div called div id=“wpbody-content”
Can you suggest a way that I can get the scheduler to display in the full available width without me needing to set a specific width and height?
Thanks.
btex
December 14, 2012, 7:48am
#2
After more searching of the forum, I came across this thread
viewtopic.php?f=6&t=22328&p=71602&hilit=scheduler+size#p71602
So, my understanding from that thread, is that I am going to need to find a way to set the size equal to the available size of =“wpbody-content”
Any ideas how I can do that?
radyno
December 14, 2012, 8:25am
#3
Hi,
try to set height in pixels but width in percents.
I guess it may be a problem for you because height is not specified for wp-body, so it’s height is 0. 100% from 0 is 0, so your scheduler is invisible.
btex
December 14, 2012, 1:25pm
#4
Thanks for that info.
Yes, you are right. I can set width:100% but I must set a specific height to get the schedule to display.
I was hoping to be able to use height:100% so that it would automatically fill the available area without me needing to work out any sizes.
radyno
December 14, 2012, 3:24pm
#5
Unfortunately there is no way to do it.