diff --git a/app/internal_packages/activity/lib/dashboard/metrics-components.jsx b/app/internal_packages/activity/lib/dashboard/metrics-components.jsx index 7e639e2d2..660c009a6 100644 --- a/app/internal_packages/activity/lib/dashboard/metrics-components.jsx +++ b/app/internal_packages/activity/lib/dashboard/metrics-components.jsx @@ -84,7 +84,7 @@ export class MetricHistogram extends React.Component { export class MetricGraph extends React.Component { componentDidMount() { if (!this.props.loading) { - window.requestAnimationFrame(() => this._el && this._el.classList.add('visible')); + window.setTimeout(() => this._el && this._el.classList.add('visible'), 50); } } diff --git a/app/internal_packages/message-list/lib/message-controls.jsx b/app/internal_packages/message-list/lib/message-controls.jsx index e6e03549c..2bfd14dd6 100644 --- a/app/internal_packages/message-list/lib/message-controls.jsx +++ b/app/internal_packages/message-list/lib/message-controls.jsx @@ -91,7 +91,7 @@ export default class MessageControls extends React.Component { menu.append( new SystemMenuItem({ label: 'Copy Debug Info to Clipboard', click: this._onCopyToClipboard }) ); - menu.popup(remote.getCurrentWindow()); + menu.popup(); }; _onShowOriginal = async () => { diff --git a/app/internal_packages/message-list/lib/message-participants.jsx b/app/internal_packages/message-list/lib/message-participants.jsx index e3c588482..747b9eb8b 100644 --- a/app/internal_packages/message-list/lib/message-participants.jsx +++ b/app/internal_packages/message-list/lib/message-participants.jsx @@ -63,7 +63,7 @@ export default class MessageParticipants extends React.Component { click: () => Actions.composeNewDraftToRecipient(contact), }) ); - menu.popup(AppEnv.getCurrentWindow()); + menu.popup(); }; _renderFullContacts(contacts = []) { diff --git a/app/menus/darwin.json b/app/menus/darwin.json index 41bb37cce..f4b566f99 100644 --- a/app/menus/darwin.json +++ b/app/menus/darwin.json @@ -61,8 +61,7 @@ { "label": "View", "submenu": [ - { "type": "separator", "id": "mailbox-navigation"}, - { "label": "Go to Inbox", "command": "navigation:go-to-inbox" }, + { "label": "Go to Inbox", "command": "navigation:go-to-inbox", "id": "first" }, { "label": "Go to Starred", "command": "navigation:go-to-starred" }, { "label": "Go to Sent", "command": "navigation:go-to-sent" }, { "label": "Go to Drafts", "command": "navigation:go-to-drafts" }, diff --git a/app/menus/linux.json b/app/menus/linux.json index a8ef8eaca..2c4cbefd3 100644 --- a/app/menus/linux.json +++ b/app/menus/linux.json @@ -43,8 +43,7 @@ { "label": "&View", "submenu": [ - { "type": "separator", "id": "mailbox-navigation"}, - { "label": "Go to Inbox", "command": "navigation:go-to-inbox" }, + { "label": "Go to Inbox", "command": "navigation:go-to-inbox", "id": "first" }, { "label": "Go to Starred", "command": "navigation:go-to-starred" }, { "label": "Go to Sent", "command": "navigation:go-to-sent" }, { "label": "Go to Drafts", "command": "navigation:go-to-drafts" }, diff --git a/app/menus/win32.json b/app/menus/win32.json index 45f09b833..2f84d7750 100644 --- a/app/menus/win32.json +++ b/app/menus/win32.json @@ -23,8 +23,7 @@ { "label": "&View", "submenu": [ - { "type": "separator", "id": "mailbox-navigation"}, - { "label": "Go to Inbox", "command": "navigation:go-to-inbox" }, + { "label": "Go to Inbox", "command": "navigation:go-to-inbox", "id": "first" }, { "label": "Go to Starred", "command": "navigation:go-to-starred" }, { "label": "Go to Sent", "command": "navigation:go-to-sent" }, { "label": "Go to Drafts", "command": "navigation:go-to-drafts" }, diff --git a/app/src/components/evented-iframe.jsx b/app/src/components/evented-iframe.jsx index 775bbf0cb..3eea1f6cb 100644 --- a/app/src/components/evented-iframe.jsx +++ b/app/src/components/evented-iframe.jsx @@ -445,7 +445,7 @@ class EventedIFrame extends React.Component { } // Services menu appears here automatically - menu.popup(remote.getCurrentWindow()); + menu.popup(); }; } diff --git a/app/src/components/outline-view-item.jsx b/app/src/components/outline-view-item.jsx index a076f6eb7..be3bb8d1b 100644 --- a/app/src/components/outline-view-item.jsx +++ b/app/src/components/outline-view-item.jsx @@ -279,7 +279,7 @@ class OutlineViewItem extends Component { }) ); } - menu.popup(remote.getCurrentWindow()); + menu.popup(); }; // Renderers diff --git a/app/src/components/participants-text-field.jsx b/app/src/components/participants-text-field.jsx index 636df6309..84e70e4f2 100644 --- a/app/src/components/participants-text-field.jsx +++ b/app/src/components/participants-text-field.jsx @@ -182,7 +182,7 @@ export default class ParticipantsTextField extends React.Component { click: () => this._remove([participant]), }) ); - menu.popup(remote.getCurrentWindow()); + menu.popup(); }; _onInputTrySubmit = (inputValue, completions = [], selectedItem) => { diff --git a/app/src/components/tokenizing-text-field.jsx b/app/src/components/tokenizing-text-field.jsx index 7f3a5a30a..f41c15854 100644 --- a/app/src/components/tokenizing-text-field.jsx +++ b/app/src/components/tokenizing-text-field.jsx @@ -733,7 +733,7 @@ export default class TokenizingTextField extends React.Component { }) ); } - menu.popup(remote.getCurrentWindow()); + menu.popup(); }; // Copy and Paste diff --git a/app/src/flux/stores/workspace-store.es6 b/app/src/flux/stores/workspace-store.es6 index c476dff42..08f6fd3db 100644 --- a/app/src/flux/stores/workspace-store.es6 +++ b/app/src/flux/stores/workspace-store.es6 @@ -34,7 +34,7 @@ class WorkspaceStore extends MailspringStore { const { windowType } = AppEnv.getLoadSettings(); if (windowType !== 'onboarding') { - require('electron').webFrame.setZoomLevelLimits(1, 1); + require('electron').webFrame.setVisualZoomLevelLimits(1, 1); AppEnv.config.observe('core.workspace.interfaceZoom', z => { if (z && _.isNumber(z)) { require('electron').webFrame.setZoomFactor(z); @@ -67,14 +67,19 @@ class WorkspaceStore extends MailspringStore { type: 'radio', command: 'application:select-list-mode', checked: this._preferredLayoutMode === 'list', - position: 'before=mailbox-navigation', + position: 'before=first', }, { label: 'Reading Pane On', type: 'radio', + id: 'reading-pane-on', command: 'application:select-split-mode', checked: this._preferredLayoutMode === 'split', - position: 'before=mailbox-navigation', + position: 'before=first', + }, + { + type: 'separator', + position: 'before=first', }, ], }, diff --git a/app/src/sheet-toolbar.jsx b/app/src/sheet-toolbar.jsx index 53e482261..017414d1d 100644 --- a/app/src/sheet-toolbar.jsx +++ b/app/src/sheet-toolbar.jsx @@ -157,7 +157,7 @@ class ToolbarMenuControl extends React.Component { _onOpenMenu = () => { const { applicationMenu } = remote.getGlobal('application'); - applicationMenu.menu.popup(AppEnv.getCurrentWindow()); + applicationMenu.menu.popup(); }; render() { diff --git a/app/src/window-event-handler.es6 b/app/src/window-event-handler.es6 index a32473d77..364ace2ee 100644 --- a/app/src/window-event-handler.es6 +++ b/app/src/window-event-handler.es6 @@ -364,7 +364,7 @@ export default class WindowEventHandler { }, }) ); - menu.popup(remote.getCurrentWindow()); + menu.popup(); } showDevModeMessages() { diff --git a/app/static/index.html b/app/static/index.html index 97e09e5c7..e0679ff40 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -3,7 +3,7 @@