Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Vertical Sizing

$
0
0
Hi Joao, thanks for the fast response. So I've setup a javascript function to listen for the window resize, and it works and runs that function whenever the window is resized, however, my calendar is still not resizing. So here is what my javascript looks like in Outsystems:

"
$(window).resize(function() {
    debugger;
    $('"+FullCalendar.Id+"').fullCalendar('option', 'height', 700);
});
"

And here is what it looks like inside my function when I'm inspecting it in Chrome after the event is fired:



I know the code runs because I have the debugger; line in there and I can step through it, but the calendar never changes its height size. Do you have any suggestions? Am I doing it wrong? Right now just to test it I'm initializing the calendar with a pixel height of 500, then when I resize the browser window I'm changing the height to 700, but it doesn't change it just stays 500. I've tried a few different things like calling the calendars render function afterwards, I've also tried having the javascript code exactly like this: "$('#calendar').fullCalendar('option', 'height', 700);" using the value '#calendar' instead of the html name. But nothing seems to work. Any suggestions would be much appreciated. Thanks!


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>