Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows 10] window size and position bug #1189

Closed
MRN314 opened this issue Oct 16, 2015 · 44 comments
Closed

[Windows 10] window size and position bug #1189

MRN314 opened this issue Oct 16, 2015 · 44 comments

Comments

@MRN314
Copy link

MRN314 commented Oct 16, 2015

After each maximize and restore telegram window size is reduced.
App randomly starts at desktop center (first monitor) instead of last saved position.

@brawaru
Copy link

brawaru commented Oct 17, 2015

I cant confirm first, everything works fine.
I have only one monitor, but after closing, TDesktop starts with the same position and size.

@MRN314
Copy link
Author

MRN314 commented Oct 17, 2015

Just tested again. Rebooted system 10 times and got 1 problem with window position restoring. Maybe it’s only windows 10 related problem, never happened on 8.1

@Brawl345
Copy link

I have the same problem with the current release, but I'm on Windows 7. I noticed the same bug on Windows 10 and it's really annoying.

@lmilunovic
Copy link

lmilunovic commented Sep 28, 2016

Go to folder option and check "Launch folder windows in separate process". Fixed it for me.

image

@N0x1k
Copy link

N0x1k commented Oct 26, 2016

This might be the same thing as #1693 Basically the issue is that Telegram doesn't remember the position when you use Aero snap (snap to side of screen) and then minimize/close to systray. If you minimize to task bar, it works, but once you turn off the task bar icon, it uses the last size and position before using the snap feature.

@Aokromes
Copy link
Collaborator

Aokromes commented Nov 7, 2016

I confirm this, it needs few maximize+restore to notice.

@JohnKiller
Copy link

JohnKiller commented May 3, 2018

After build 1803 (April update) this bug is more frequent and also when window is maximized on the second monitor, the topbar is cut in half

@brawaru
Copy link

brawaru commented May 3, 2018

As far as I understand, this issue was about resizing a window and that it changes its position after being restored. What you talking is a common bug with applications on Windows 10 (with April update and for a long time on Insider) that have custom title bars: when maximized, sometimes such windows can be wrongly maximized (means, the title bar is slightly cropped; also when you have a taskbar on left/right side, bottom also can be cropped). I'm not sure there's something to do with Telegram Desktop. I can reproduce the same thing with Discord, VK Messenger. @JohnKiller, your comment is probably irrelevant to this issue and should be reported as a separate issue (needs confirmation by project maintainers) see #4649.

The bug about Telegram window losing its position or size after restore isn't reproducible for me.

@lightlessfilms
Copy link

its a bit better if you adjust the settings under Compatibility tab in properties.
2018-05-03 18_11_03-window

@bendbot
Copy link

bendbot commented Oct 22, 2018

Скорей всего проблема появляется у тех, кто использует больше одного монитора.
Если второй монитор находится слева от основного, то расположение окна в левой части основного монитора рассчитывается неправильно и приводит к сбросу при следующем открытии программы.
Если расположить второй монитор справа от основного, то все работает нормально.

Изменение параметров совместимости ни к чему не приводит.
Изменение параметра папки "Запускать окна с папками в отдельном процессе" тоже ничего не дает.

Записал видео как ведет окно Telegram https://youtu.be/4cCg0uQQecQ

@Vilmodao
Copy link

Vilmodao commented Feb 23, 2020

I must have something like that.
Every time I restart Telegram its window comes smaller. Looks like it loose exactly 16 pix. by width in one go. Maximize and restore goes well.
Took screenshots after every restart.
https://user-images.githubusercontent.com/11928504/75109637-2bb92c80-5636-11ea-958f-3795376faacc.gif
Windows 8.1 (not highly updated)
Telegram Desktop Portable v 1.9.14 (it seems the problem was on the previous version as well)

Oh, I didn't look at the date. Maybe I should create a new ticket?

@lightlessfilms
Copy link

I must have something like that.
Every time I restart Telegram its window comes smaller. Looks like it loose exactly 16 pix. by width in one go. Maximize and restore goes well.
Took screenshots after every restart.
https://user-images.githubusercontent.com/11928504/75109637-2bb92c80-5636-11ea-958f-3795376faacc.gif
Windows 8.1 (not highly updated)
Telegram Desktop Portable v 1.9.12 (it seems the problem was on the previous version as well)

Oh, I didn't look at the date. Maybe I should create a new ticket?

Please do :) Also, what version of Windows 8.1 do you use?

@Aokromes
Copy link
Collaborator

I must have something like that.
Every time I restart Telegram its window comes smaller. Looks like it loose exactly 16 pix. by width in one go. Maximize and restore goes well.
Took screenshots after every restart.
user-images.githubusercontent.com/11928504/75109637-2bb92c80-5636-11ea-958f-3795376faacc.gif
Windows 8.1 (not highly updated)
Telegram Desktop Portable v 1.9.12 (it seems the problem was on the previous version as well)

Oh, I didn't look at the date. Maybe I should create a new ticket?

no need of create new tickets for already opened issues even they are ancient.

@Vilmodao
Copy link

Please do :) Also, what version of Windows 8.1 do you use?

6.3.9600 Build 9600

no need of create new tickets for already opened issues even they are ancient.

Sure. But it seems to me, the closed ticket #7222 is more relevant to my case.

@lightlessfilms
Copy link

@Vilmodao Thank you for the quick reply. Can you install the latest version of Telegram Desktop portable version? 1.9.14 is out

@Vilmodao
Copy link

Vilmodao commented Feb 24, 2020

Thank you for the quick reply. Can you install the latest version of Telegram Desktop portable version? 1.9.14 is out

Oops... I already use 1.9.14. I wrote 1.9.12 by mistake. Sorry. I just fixed it.

Just checked absolutely new one portable copy of Telegram (1.9.14). Have reproduced the problem even with this start screen.
screenshot_2020_02_24_at_23_56_33

@nasaboy
Copy link

nasaboy commented Feb 26, 2020

The size of the window will shrink automatically, each time it is closed and then opened again, until it shrinks to a certain extent.
1.9.19 also the same.

@alexbraga
Copy link

Sure. But it seems to me, the closed ticket #7222 is more relevant to my case.

Same here. I was just about to create a post about this issue when I realized it has tons of duplicates, but the #7222 is more relevant to me as well

The size of the window will shrink automatically, each time it is closed and then opened again, until it shrinks to a certain extent.
1.9.19 also the same.

I'm also running 1.9.19 beta, and it has been happening since a few updates ago on Windows 10. And it's quite annoying. It happens specially when you drag to resize until it snaps to bottom or top of the screen, otherwise it still remembers window size but only if you don't completely close the application

@nasaboy
Copy link

nasaboy commented Mar 17, 2020

Sure. But it seems to me, the closed ticket #7222 is more relevant to my case.

Same here. I was just about to create a post about this issue when I realized it has tons of duplicates, but the #7222 is more relevant to me as well

The size of the window will shrink automatically, each time it is closed and then opened again, until it shrinks to a certain extent.
1.9.19 also the same.

I'm also running 1.9.19 beta, and it has been happening since a few updates ago on Windows 10. And it's quite annoying. It happens specially when you drag to resize until it snaps to bottom or top of the screen, otherwise it still remembers window size but only if you don't completely close the application

the 1.9.21 also have the problem,it's quite annoying.so sad.

@Vilmodao
Copy link

The window shrinking bug is still here on version 2.1.

@nasaboy
Copy link

nasaboy commented May 16, 2020

2.1.6 not fixed

@mshipman
Copy link

Can confirm I have the same issue where the Telegram window is significantly smaller each time the app is launched (on a machine with two monitors, one 1920x1080 and one 1920x1200). There are no issues when minimizing/maximizing the window without closing the program.

Telegram: 2.1.10
OS: Windows 10 x64 (Version 2004 / Build 19041.329)

@mmortal03
Copy link

Yep. My Telegram window height gets smaller after each Telegram restart. Telegram version 2.1.13. Windows 10 version 1909. Laptop screen resolution 1600x900.

@ezequielfalcon
Copy link

Same here.
2.1.14 and Windows 10 2004

@nasaboy
Copy link

nasaboy commented Aug 8, 2020

2.2.0 not fixed hhh

@Vilmodao
Copy link

2.3.1 not fixed

@nasaboy
Copy link

nasaboy commented Aug 29, 2020

windows update to 2004,it fixed.

@alexbraga
Copy link

windows update to 2004,it fixed.

I'm on a fresh Windows install, recently updated to 2004 and the bug persists.

@altsep
Copy link

altsep commented Oct 10, 2020

Apparently the problem can occur when you run the program minimized by default - setting it to launch normally fixed it for me. Still, would be nice to have that option without the window size bugging out. For a long time, I used to think the resize was an intentional change on Telegram's part.

@altsep
Copy link

altsep commented Oct 15, 2020

It broke again, either after Tg or Windows update. I don't use multiple monitors or virtual desktops.

Edit: now it doesn't resize once again, I'm confused.

@mmortal03
Copy link

@last-things , I noticed that the Telegram window currently can't physically be shrunk vertically past a certain point. So, for me, it gets smaller and smaller vertically until it hits that point, and then obviously no longer happens because it's reached that point. It's still not fixed for people who want the window to be larger than that, though.

@shemanaev
Copy link

"Use system window frame" seems to fixed this.
The right sizes written and read according to debug log, so bug is somewhere in applying size to custom title bar/shadow.

@mmortal03
Copy link

"Use system window frame" seems to fixed this.

Thanks, that does seem to be a workaround.

@Younes-L
Copy link

the "use system window frame" workaround doesn't totally fix this for me only when using vertical right panel (aka dock) as is default on ubuntu.
It's as if tdesktop tries to avoid a non-existent right panel. Only happens in this position and not the others, in other panel positions, tdesktop launches with correctly saved position from previous launch (no space between tdesktop's window and system panel)
I'm using Mint 20.1 with Cinnamon 4.8.5 , should i open a new issue ?

@Aokromes
Copy link
Collaborator

@mmortal03
Copy link

mmortal03 commented Apr 30, 2021

https://betanews.com/2021/04/29/microsoft-is-fixing-multiple-monitor-support-in-windows-10/

That's great, but it makes no sense to close this issue based on that. The people experiencing this bug aren't inherently on multiple monitors, and the bug isn't some general issue with Windows programs -- this issue only affects Telegram. I can still demonstrate the bug for you right now.

@Aokromes
Copy link
Collaborator

betanews.com/2021/04/29/microsoft-is-fixing-multiple-monitor-support-in-windows-10

That's great, but it makes no sense to close this issue based on that. The people experiencing this bug aren't inherently on multiple monitors, and the bug isn't some general issue with Windows programs -- this issue only affects Telegram. I can still demonstrate the bug for you right now.

i am unable to reproduce on latest windows insider with a single monitor.

@mmortal03
Copy link

i am unable to reproduce on latest windows insider with a single monitor.

I'm working on reproducing it on another machine for you to help determine the specific conditions. It still does it on my laptop, but not on a desktop. Both are using the 32-bit version of Telegram Desktop, version 2.7.4. I'm not on a Windows Insider branch, so I can't speak to that.

My laptop screen is set at 1600x900 resolution, with Windows scale set to 100%, and I've tried Telegram scale set to 100% or 125%, but it doesn't matter, it still does it.

The desktop monitor is set at 1920x1080 resolution, but I've also tried 1600x900, I've tried the Windows scale at both 100% and 125% at both 1920 and 1600 resolutions, and I've tried Telegram scale set to 100% or 125%, but it doesn't matter, I can't reproduce it there.

I had a hunch that it had something to do with differences in system menu font size or scrollbar size, but I compared various settings for those across both machines, controlled for it, and still couldn't reproduce on the desktop, only on the laptop.

@Aokromes
Copy link
Collaborator

i am unable to reproduce on latest windows insider with a single monitor.

I'm working on reproducing it on another machine for you to help determine the specific conditions. It still does it on my laptop, but not on a desktop. Both are using the 32-bit version of Telegram Desktop, version 2.7.4. I'm not on a Windows Insider branch, so I can't speak to that.

My laptop screen is set at 1600x900 resolution, with Windows scale set to 100%, and I've tried Telegram scale set to 100% or 125%, but it doesn't matter, it still does it.

The desktop monitor is set at 1920x1080 resolution, but I've also tried 1600x900, I've tried the Windows scale at both 100% and 125% at both 1920 and 1600 resolutions, and I've tried Telegram scale set to 100% or 125%, but it doesn't matter, I can't reproduce it there.

I had a hunch that it had something to do with differences in system menu font size or scrollbar size, but I compared various settings for those across both machines, controlled for it, and still couldn't reproduce on the desktop, only on the laptop.

i tried on the system where i reproduced it on 2016, i cannot now, so, microsoft fixed it.

@mmortal03
Copy link

mmortal03 commented May 11, 2021

i tried on the system where i reproduced it on 2016, i cannot now, so, microsoft fixed it.

What is your insider build version number? I'm willing to test it on my laptop, or at least wait until it is released to a wider channel. 21H1 is also going to be released soon. The issue could just be contingent on some system setting that has changed on your system since then, rather than something that was fixed by Microsoft.

@Aokromes
Copy link
Collaborator

Aokromes commented May 11, 2021

10.0.21376.1, that's not 21h1 instead minimum 21h2 https://betawiki.net/wiki/Windows_10_build_21376.1

@mmortal03
Copy link

mmortal03 commented May 12, 2021

Before taking that step, I tested it on a clean install of 20H2 on the same laptop and couldn't reproduce. This got me thinking what it could be on my particular Windows install that was causing it. I decided to clean house, uninstalling an assortment of old programs and libraries that were still present but that I hadn't used in a while, including Java, MATLAB, Qt, gstreamer-sdk, even an old copy of YouCam webcam software, etc., then rebooted the laptop, and the problem disappeared!
I could possibly revert back to a previous backup image to try to determine which item was specifically the cause, but I don't think it's worth the effort -- people still experiencing the bug should just try to uninstall various older libraries that they still have present on their machine and reboot and see if it fixes it. Maybe one of the devs here could point to applicable libraries or packages that would be able to interfere with Telegram in this way? My first thought is the very old copy of Qt that I had installed.

@mmortal03
Copy link

Sigh... it's doing it again. Back to square one.

@github-actions
Copy link

github-actions bot commented Jul 6, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests