Put article ifram in front of modules

Before this change the article was brought up in its ifram in fullscreen and you could still see the other modules in front of it
This commit is contained in:
Andreas Cederström 2018-01-20 23:32:44 +01:00
parent d167ad1923
commit f299ba6218
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Add system notification `MODULE_DOM_CREATED` for notifying each module when their Dom has been fully loaded. - Add system notification `MODULE_DOM_CREATED` for notifying each module when their Dom has been fully loaded.
- Add types for module. - Add types for module.
### Fixed
- News article in fullscreen (iframe) is now shown in front of modules.
*This release is scheduled to be released on 2018-04-01.* *This release is scheduled to be released on 2018-04-01.*
## [2.2.2] - 2018-01-02 ## [2.2.2] - 2018-01-02

View File

@ -186,6 +186,7 @@ Module.register("newsfeed",{
fullArticle.height = window.innerHeight; fullArticle.height = window.innerHeight;
fullArticle.style.border = "none"; fullArticle.style.border = "none";
fullArticle.src = this.newsItems[this.activeItem].url; fullArticle.src = this.newsItems[this.activeItem].url;
fullArticle.style.zIndex = 1;
wrapper.appendChild(fullArticle); wrapper.appendChild(fullArticle);
} }