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

Commit

Permalink
Merge pull request #26 from mendix/fix/wt-2717
Browse files Browse the repository at this point in the history
Add timeout if statusoverlay is false
  • Loading branch information
mmehmetAliIzci committed Sep 14, 2020
2 parents 97c5e61 + c92d56b commit 3112c6c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
Binary file modified dist/MobileFeatures.mpk
Binary file not shown.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "MobileFeatures",
"version": "1.5.0",
"version": "1.5.1",
"description": "Features for Mobile",
"license": "Apache 2",
"author": "J.W. Lagendijk <jelte.lagendijk@mendix.com>",
"author": "Mendix",
"private": true,
"dependencies": {},
"devDependencies": {
Expand Down
10 changes: 10 additions & 0 deletions src/MobileFeatures/widget/plugins/statusbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ define([
StatusBar.hide();
}
if (StatusBar.overlaysWebView) {

StatusBar.overlaysWebView(this.statusbarOverlayWebView);

// Because of the bug in CKWEBView, we need to flick with timeout
// If overlay is false
if (!this.statusbarOverlayWebView){
setTimeout(()=> {
StatusBar.overlaysWebView(!this.statusbarOverlayWebView);
StatusBar.overlaysWebView(this.statusbarOverlayWebView);
}, 1000)
}
}
} else {
console.warn(this.id + "._enableStatusbar: cannot find StatusBar");
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="MobileFeatures" version="1.5.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="MobileFeatures" version="1.5.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="MobileFeatures/MobileFeatures.xml"/>
</widgetFiles>
Expand Down

0 comments on commit 3112c6c

Please sign in to comment.