fix fullscreen and bbco_autocomplete popup rendering

This commit is contained in:
Mario Vavti
2017-03-20 20:59:46 +01:00
parent 8b0bcdb2a5
commit 837efcf5e7
4 changed files with 13 additions and 17 deletions

View File

@@ -1364,19 +1364,13 @@ img.mail-conv-sender-photo {
word-wrap: break-word;
}
main.fullscreen {
left: 0px;
width: 100%;
height: 100vh;
max-width: none;
}
main.fullscreen .generic-content-wrapper {
position: absolute;
width: 100%;
position: fixed;
top: 0px;
left: 0px;
width: 100%;
border-radius: 0px;
border-width: 0px;
}
main.fullscreen .section-title-wrapper {

View File

@@ -73,17 +73,14 @@ $(document).ready(function() {
function makeFullScreen(full) {
if(typeof full=='undefined' || full == true) {
$('main').css({'transition': 'none'}).addClass('fullscreen');
$('header, nav, aside, #fullscreen-btn').hide();
$('#tabs-collapse-1').css({'visibility': 'hidden'});
$('main').addClass('fullscreen');
$('header, nav, aside, #fullscreen-btn').css({'visibility': 'hidden'});
$('#inline-btn').show();
}
else {
$('main').removeClass('fullscreen');
$('header, nav, aside, #fullscreen-btn').show();
$('#tabs-collapse-1').css({'visibility': ''});
$('header, nav, aside, #fullscreen-btn').css({'visibility': ''});
$('#inline-btn').hide();
$('main').css({'transition': ''});
$(document.body).trigger("sticky_kit:recalc");
}
}