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

[Forums] Vertical Sizing

$
0
0
Hey João, so I tried doing it without setting the contentHeight and it still doesn't work. Also I knew about the bonus and extra bonus options, but those don't seem to work for me either. In fact when I copy paste your code for the extra bonus, it ends up putting prev next and today buttons above the month week and day buttons. I have no idea why. I've tried so many different ways of doing it, like putting the JS inside an expression, putting it in a RunJavascript action in the preparation, etc. I've attached a very very simple straight forward oml file to show you what I mean. It is basically a blank application with the London theme applied with only a HomePage where I dragged out the FullCalendar and have done bascially nothing with it, I've left it as is. I only set the two required properties (defaultDate & Destination). Then in the preparation I've put the following JS code inside of a RunJavascript action:

"
    $(window).resize(function() {
        debugger;
        $('#"+MyCalendar.Id+"').fullCalendar('option', 'height', 20000);
    });

    $(function(){
        debugger;
        $('#"+MyCalendar.Id+"').fullCalendar('option', 'height', 20000);
    });

    $('#"+MyCalendar.Id+"').fullCalendar({
        windowResize: function(view) {
            debugger;
            alert('The calendar has adjusted to a window resize');
        }
    });
"

When I debug, both the resize function and function run and I can step through them, but nothing happens to the calendar's height, it remains the same. The windowResize function doesn't ever run when I change the size of my browser window. Also you will note the extra buttons that get added above the month, week and day buttons when the windowResize JS code is there. If you remove it then those extra buttons go away. Sorry I'm being such a pain, I really don't know what I'm missing here, I would have thought this would be easier than this to do. Is there something you can see that I'm doing wrong. I tried it so many different ways, but nothing works. Are you able to get it to work? Let me know if you can open the oml file I've attached.

Just incase you can't open the oml file, here is a screenshot of the properties of the calendar, as you can see there is not much to it:





Viewing all articles
Browse latest Browse all 1476385

Trending Articles



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