为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Window size not remembered perfectly

more options

Hello, I have the same issue that Ferento posted about here 11 months ago: https://support.mozilla.org/en-US/questions/1355904

When starting a new firefox instance, it starts the window with the same size and position as the last instance had. However, when the last size stretched from top of the screen to the bottom, a new instance will always appear slightly shorter than the height of the screen, leaving a small gap between the bottom of the browser window and the bottom of the screen. The remembered size works perfectly for sizes less than the height of the screen.

The xulstore.json file is not corrupt, as I've tried removing it and altering it, resulting in the same issue. I have also tried changing the window height inside the xulstore.json file to larger than the screen size, and found that it get's cropped to slightly less than the window height, same as my issue above. This has led me to believe that when firefox starts a new instance, the size is cropped so that it doesn't extend past the screen borders. This is good, but the size it gets cropped to is clearly bugged, unless it's intended to crop to less than screen size.

I use a window manager that lets me easily snap windows to each other as well as to the screen borders, so firefox always leaving a slight gap when it starts drives me mad as I have to manually resize it every time.

I use windows 10, firefox 106.0 (64 bit), however I experience the same issue with both firefox developer edition and firefox nightly.

Hello, I have the same issue that Ferento posted about here 11 months ago: https://support.mozilla.org/en-US/questions/1355904 When starting a new firefox instance, it starts the window with the same size and position as the last instance had. However, when the last size stretched from top of the screen to the bottom, a new instance will always appear slightly shorter than the height of the screen, leaving a small gap between the bottom of the browser window and the bottom of the screen. The remembered size works perfectly for sizes less than the height of the screen. The xulstore.json file is not corrupt, as I've tried removing it and altering it, resulting in the same issue. I have also tried changing the window height inside the xulstore.json file to larger than the screen size, and found that it get's cropped to slightly less than the window height, same as my issue above. This has led me to believe that when firefox starts a new instance, the size is cropped so that it doesn't extend past the screen borders. This is good, but the size it gets cropped to is clearly bugged, unless it's intended to crop to less than screen size. I use a window manager that lets me easily snap windows to each other as well as to the screen borders, so firefox always leaving a slight gap when it starts drives me mad as I have to manually resize it every time. I use windows 10, firefox 106.0 (64 bit), however I experience the same issue with both firefox developer edition and firefox nightly.
已附加屏幕截图

所有回复 (3)

more options

Close Firefox. Open your file browser to this hidden location:

   Mac: *~/Library/Application Support/Firefox/Profiles
   Linux: *~/.mozilla/firefox/Profiles
   Windows: %AppData%\Mozilla\Firefox\Profiles
   *C:\Users\<user>\AppData\Roaming\Mozilla\Firefox\Profiles 

Greetings, James

more options

techguy150 said

Close Firefox. Open your file browser to this hidden location: Mac: *~/Library/Application Support/Firefox/Profiles Linux: *~/.mozilla/firefox/Profiles Windows: %AppData%\Mozilla\Firefox\Profiles *C:\Users\<user>\AppData\Roaming\Mozilla\Firefox\Profiles Greetings, James

And then do what? I've been to this directory already as you can see if you read my question

more options

Oh hell, the invisible yet visible gap between programs and the frame of your screen. It's a problem with Windows, not Firefox. Even Windows-own programs do not open at the exact same position again. This is just one of the things that perfectly worked in Windows 7 but got broken (on purpose) in Windows 1x.

Afaik there is no solution for this and probably never will be. The only thing you can do is use something like FancyZones (part of the PowerToys) that let's you set window sizes and position zones and drag you programs to these zones. Works like a charm.