Apply style once an skin is loaded
This commit is contained in:
parent
dd96102ec3
commit
3250100fad
2 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,6 @@ html {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.clipForScreenReader {
|
.clipForScreenReader {
|
||||||
|
|
|
@ -137,6 +137,7 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr
|
||||||
|
|
||||||
function onViewBeforeShow(e) {
|
function onViewBeforeShow(e) {
|
||||||
if (e.detail && e.detail.type === 'video-osd') {
|
if (e.detail && e.detail.type === 'video-osd') {
|
||||||
|
document.getElementsByTagName('body')[0].style = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,6 +156,7 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
document.getElementsByTagName('body')[0].style = 'overflow-y: scroll';
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('viewshow', onViewBeforeShow);
|
document.addEventListener('viewshow', onViewBeforeShow);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue