Skip to content

Commit

Permalink
Merge pull request mozilla-b2g#6798 from alivedise/bugzilla/816647
Browse files Browse the repository at this point in the history
Bug 816647 - mozFullScreen meets inline activity
  • Loading branch information
alivedise committed Dec 6, 2012
2 parents 669e1f3 + e7a1a2d commit c458b50
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/system/js/statusbar.js
Expand Up @@ -55,7 +55,7 @@ var StatusBar = {
/* For other modules to acquire */
get height() {
if (this.screen.classList.contains('fullscreen-app') ||
document.querySelector('#screen:-moz-full-screen-ancestor')) {
document.mozFullScreen) {
return 0;
} else if (this.screen.classList.contains('active-statusbar')) {
return this.attentionBar.offsetHeight;
Expand Down
10 changes: 8 additions & 2 deletions apps/system/js/window_manager.js
Expand Up @@ -230,8 +230,14 @@ var WindowManager = (function() {
var frame = inlineActivityFrame;

frame.style.width = appFrame.style.width;
frame.style.height = appFrame.style.height;
frame.style.top = appFrame.offsetTop + 'px';

if (document.mozFullScreen) {
frame.style.height = window.innerHeight + 'px';
frame.style.top = '0px';
} else {
frame.style.height = appFrame.style.height;
frame.style.top = appFrame.offsetTop + 'px';
}
}

function setFrameBackgroundBlob(frame, blob, transparent) {
Expand Down
1 change: 1 addition & 0 deletions apps/system/style/zindex.css
Expand Up @@ -182,6 +182,7 @@

/* We promotes the following overlays on top of the fullscreen web content. */

#screen:-moz-full-screen-ancestor > [data-z-index-level="app"] > iframe.appWindow.inlineActivity,
#screen:-moz-full-screen-ancestor > [data-z-index-level="sleep-menu"],
#screen:-moz-full-screen-ancestor > [data-z-index-level="list-menu"],
#screen.locked:-moz-full-screen-ancestor > [data-z-index-level="statusbar"],
Expand Down

0 comments on commit c458b50

Please sign in to comment.