Skip to content

Commit

Permalink
Fix: don't change the cropper window reported size if the inputs have…
Browse files Browse the repository at this point in the history
… focus
  • Loading branch information
matheuss committed Oct 5, 2016
1 parent 32d0525 commit 045f18a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/renderer/js/index.js
Expand Up @@ -307,7 +307,9 @@ document.addEventListener('DOMContentLoaded', () => {
});

ipcRenderer.on('cropper-window-new-size', (event, size) => {
[inputWidth.value, inputHeight.value] = [size.width, size.height];
if (inputWidth !== document.activeElement && inputHeight !== document.activeElement) {
[inputWidth.value, inputHeight.value] = [size.width, size.height];
}
});

ipcRenderer.on('unstick-from-menubar', () => {
Expand Down

0 comments on commit 045f18a

Please sign in to comment.