03.12.2019, 07:30
Try installing 2019 RC1 firmware, positioning work correctly for me in this version. If you need multiple widgets it's better to use different classes (static-widget1 and static-widget2). Transitions will not work.
Code:
$(function() {
var w1 = $('#widget-2').removeClass('layer').css('position', 'absolute');
var w2 = $('#widget-4').removeClass('layer').css('position', 'absolute');
$(document.body).on('showplan', function() {
w1.removeClass('force-show');
w2.removeClass('force-show');
});
$('.static-widget1').on('vclick', function() {
w2.removeClass('force-show');
w1.toggleClass('force-show', !w1.hasClass('hide'));
hideWidgets();
});
$('.static-widget2').on('vclick', function() {
w1.removeClass('force-show');
w2.toggleClass('force-show', !w2.hasClass('hide'));
hideWidgets();
});
});