Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10853 from alivedise/bugzilla/889175_v1-train
Browse files Browse the repository at this point in the history
Bug 889175 - Fix UI problem of fullscreen app when call incoming, r=timdream, a=leo+
  • Loading branch information
alivedise committed Jul 9, 2013
2 parents cd41b9f + fa78ae8 commit 4d6b55c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/system/js/statusbar.js
Expand Up @@ -117,11 +117,11 @@ var StatusBar = {

/* For other modules to acquire */
get height() {
if (this.screen.classList.contains('fullscreen-app') ||
if (this.screen.classList.contains('active-statusbar')) {
return this.attentionBar.offsetHeight;
} else if (this.screen.classList.contains('fullscreen-app') ||
document.mozFullScreen) {
return 0;
} else if (this.screen.classList.contains('active-statusbar')) {
return this.attentionBar.offsetHeight;
} else {
return this._cacheHeight ||
(this._cacheHeight = this.element.getBoundingClientRect().height);
Expand Down
4 changes: 4 additions & 0 deletions apps/system/style/attention_screen.css
Expand Up @@ -23,6 +23,10 @@
transition: none;
}

#screen.attention.active-statusbar #statusbar {
display: none;
}

#attention-screen.status-mode > iframe {
margin-top: 0;
height: 100%;
Expand Down
6 changes: 4 additions & 2 deletions apps/system/style/system/system.css
Expand Up @@ -260,8 +260,10 @@ body {
border: none;
}

#screen.active-statusbar #windows > .appWindow {
top: 40px;
#screen.active-statusbar #windows > .appWindow,
#screen.active-statusbar #windows > .appWindow.fullscreen-app {
top: 4rem;
height: calc(100% - 4rem);
}

#windows > .appWindow:not(.homescreen) {
Expand Down

0 comments on commit 4d6b55c

Please sign in to comment.