ClaudeMetz / FactoryPlanner

A mod for Factorio. Allows you to plan out your production in detail.
https://mods.factorio.com/mod/factoryplanner
MIT License
92 stars 46 forks source link

Interface width/height preferences keep going back to default #371

Open jtaseff opened 2 weeks ago

jtaseff commented 2 weeks ago

Problem Description

I keep opening Factory Planner, and changing the interface size to show more rows and products. But the view size keeps going back to the default smallest numbers.

Reproduction

Open Factory Planner. With it open and the game running, alt-tab to another window and back to Factorio. The view size jumps back to default.

jtaseff commented 2 weeks ago

Edited: found how to reproduce it.

ClaudeMetz commented 2 weeks ago

Yeah this is an issue I know about, you're probably on Linux right? The mod tries to keep its window within a reasonable size so it always fits. What your OS does when you alt-tab is resize the Factorio window to be very small, which triggers this resizing logic.

I tried fixing this before by only running the resizing when you start a save for the first time, but that wasn't as easy as I thought. I'll keep this card around and will give it a second attempt at some point.

Appreciate the report!

jtaseff commented 2 weeks ago

Windows 10 actually. If it helps anything, display is 4K, Windows UI scaling is set to 250%, factorio UI scaling is manual (pixels) 200% if that's messing with things. Cheers, thanks for all the hard work getting it running for 2.0!

ClaudeMetz commented 2 weeks ago

Ah interesting, it's probably a similar issue though. We'll see!