Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Fix issue with flashing side menu
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Jan 2, 2019
1 parent 1bf7259 commit 35915ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/screens/Notes/NoteCell.js
Expand Up @@ -160,7 +160,7 @@ export default class NoteCell extends ThemedPureComponent {
noteCell: {
padding: padding,
paddingRight: padding * 2,
borderBottomColor: StyleKit.hexToRGBA(StyleKit.variables.stylekitBorderColor, 0.7),
borderBottomColor: StyleKit.hexToRGBA(StyleKit.variables.stylekitBorderColor, 0.75),
borderBottomWidth: 1,
backgroundColor: StyleKit.variable("stylekitBackgroundColor"),
},
Expand Down
6 changes: 3 additions & 3 deletions src/screens/SideMenu/MainSideMenu.js
Expand Up @@ -121,7 +121,8 @@ export default class MainSideMenu extends AbstractSideMenu {
}

if(!this.handler || SideMenuManager.get().isLeftSideMenuLocked()) {
return null
// Return empty, but colored view
return <View style={viewStyles} />;
}

let themeOptions = this.buildOptionsForThemes();
Expand Down Expand Up @@ -182,9 +183,8 @@ export default class MainSideMenu extends AbstractSideMenu {
flexDirection: "column"
},
hero: {
height: 75,
height: 65,
padding: 15,
paddingTop: 25,
backgroundColor: StyleKit.variables.stylekitContrastBackgroundColor,
borderBottomColor: StyleKit.variables.stylekitContrastBorderColor,
borderBottomWidth: 1
Expand Down
2 changes: 1 addition & 1 deletion src/screens/SideMenu/NoteSideMenu.js
Expand Up @@ -200,7 +200,7 @@ export default class NoteSideMenu extends AbstractSideMenu {
}

if(!this.handler || SideMenuManager.get().isRightSideMenuLocked()) {
return null;
return <View style={viewStyles} />;
}

let editorOptions = this.buildOptionsForEditors();
Expand Down

0 comments on commit 35915ad

Please sign in to comment.