Example #1
0
function handleFontSizeChange() {
    var fontSize = preferences.get('fontSize');
    $('html').css('fontSize', fontSize + 'px');
    Common.repaintForTimeframe(500, () => {
        wreqr.vent.trigger('resize');
        $(window).trigger('resize');
    });
}
Example #2
0
 updateDropzoneHeight: function() {
     updateDropzoneHeight(this);
     this.listenToResize();
     Common.cancelRepaintForTimeframe(this.dropzoneAnimationRequestDetails);
     this.dropzoneAnimationRequestDetails = Common.repaintForTimeframe(2000, updateDropzoneHeight.bind(this, this));
 },