Repository: manusa/electronim (js)

Issue:
Dialog auto-resize should be disabled
## Description

The dialog Electorn auto-resize feature should be disabled. Auto-resizing is handled internally by ElectronIM and should not be delegated to Electron's built-in behavior.

The following code:
https://github.com/manusa/electronim/blob/bcb5760d80dd00ec51055e1c404c02ff55eed874/src/browser-window/index.js#L20

Should be replaced by:
```javascript
  browserView.setAutoResize({width: false, horizontal: false, height: false, vertical: false});
```

The test should be updated accordingly too:
https://github.com/manusa/electronim/blob/bcb5760d80dd00ec51055e1c404c02ff55eed874/src/browser-window/__tests/index.test.js#L39-L40

Pull request description:
Chore: disable dialog auto resize #128
Fix #128 

Patch:
diff --git a/package.json b/package.json
index 92040d3..cbc4dfd 100644
--- a/package.json
+++ b/package.json
@@ -206,5 +206,8 @@
     "markdown-it": "13.0.1",
     "nodehun": "3.0.2",
     "preact": "10.11.0"
+  },
+  "directories": {
+    "doc": "docs"
   }
 }
diff --git a/src/browser-window/index.js b/src/browser-window/index.js
index 2aece89..b04e243 100644
--- a/src/browser-window/index.js
+++ b/src/browser-window/index.js
@@ -17,7 +17,7 @@ const showDialog = (window, browserView) => {
   window.setBrowserView(browserView);
   const {width, height} = window.getContentBounds();
   browserView.setBounds({x: 0, y: 0, width, height});
-  browserView.setAutoResize({width: true, horizontal: true, height: true, vertical: true});
+  browserView.setAutoResize({width: false, horizontal: false, height: false, vertical: false});
 };
 
 module.exports = {showDialog};


Test patch:
diff --git a/src/browser-window/__tests__/index.test.js b/src/browser-window/__tests__/index.test.js
index 6426048..87f91b8 100644
--- a/src/browser-window/__tests__/index.test.js
+++ b/src/browser-window/__tests__/index.test.js
@@ -37,6 +37,6 @@ describe('browser-window util module test suite', () => {
     expect(dialog.setBounds).toHaveBeenCalledWith({x: 0, y: 0, width: 13, height: 37});
     expect(dialog.setAutoResize).toHaveBeenCalledTimes(1);
     expect(dialog.setAutoResize)
-      .toHaveBeenCalledWith({width: true, horizontal: true, height: true, vertical: true});
+      .toHaveBeenCalledWith({width: false, horizontal: false, height: false, vertical: false});
   });
 });