ryanbarr / harvest-monster

A tool to help you sell Path of Exile Harvest crafts on The Forbidden Trove.
https://www.harvestmonster.com
GNU General Public License v3.0
10 stars 1 forks source link

Application window does not properly resize on load. #24

Closed ryanbarr closed 2 years ago

ryanbarr commented 2 years ago

Describe the bug When I have a handful of crafts and load the application, the crafts are cut off and it forces me to scroll or manually resize.

To Reproduce

  1. Launch the app
  2. Add at least six crafts.
  3. Close the app.
  4. Launch the app.
  5. Observe crafts being cut off.

Expected behavior The application should size appropriately to the content size on launch.

Screenshots N/A

Additional context This is because of a fixed application window height when setting up the BrowserWindow, and that forceResize() is not attached from the preload by the time the first one is called.

ryanbarr commented 2 years ago

Resolved with 34b42a5