Skip to content

Commit

Permalink
Fix #513: Memory Game now works on mobile devices
Browse files Browse the repository at this point in the history
#529: Moved author support message so it doesn't mess up LO height when in full screen
  • Loading branch information
FayCross committed Jul 21, 2016
1 parent d11fe8c commit d13848b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ function x_setUp() {
x_authorSupport = "false";
} else {
var msg = x_getLangInfo(x_languageData.find("authorSupport")[0], "label", "") != "" && x_getLangInfo(x_languageData.find("authorSupport")[0], "label", "") != null ? x_getLangInfo(x_languageData.find("authorSupport")[0], "label", "") : "Author Support is ON: text shown in red will not appear in live projects.";
$x_mainHolder.before('<div class="alert"><p>' + msg + '</p></div>');
$x_headerBlock.prepend('<div class="alert"><p>' + msg + '</p></div>');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

// function called every time the size of the LO is changed
this.sizeChanged = function() {

if (x_browserInfo.mobile == true) {
$("#pageContents").height($("#cardTopHolder").height());
}
}

this.init = function() {
Expand Down Expand Up @@ -74,6 +76,10 @@

this.createCards();

if (x_browserInfo.mobile == true) {
$("#pageContents").height($("#cardTopHolder").height());
}

x_pageLoaded();
}

Expand Down

0 comments on commit d13848b

Please sign in to comment.