Window size is not calculated correctly on startup and there are two window frames #13075
YanceyChiew
started this conversation in
General
Replies: 2 comments 1 reply
-
Uh, can you possibly post a screen recording? ScreenToGif is particularly useful for this. If a picture is worth a thousand words, then a recording is worth 24000 words per second 😄 I'm mildly worried that #12979 may have caused this |
Beta Was this translation helpful? Give feedback.
0 replies
-
screen-capture.webm.mp4 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that recent commits brought a new behavior on window startup. (no earlier than May 3)
Previously, a blank frame is displayed first when the window is opened, leaving the client area of the shell transparent for a while. And now, this area is no longer transparent, but has a inborn window background, which is great.
But the problem is that the background doesn't directly fill the transparent area left by the window frame, but has a strange initial value
110 * 22
(related to the font size, the current value corresponds to the default font size of12
), the rest area remains transparent, and then fills the rest area in a subsequent resizing.This initial value is neither the same as the current value nor default value of the
Launch Size
in theStartup
settings. Here are some specific behaviors:Launch Size
is110 * 22
andFont Size
is12
, you will not see the resize process.Columns
is less than110
, the three buttons in the upper right corner will appear outside the visible window at first, and then move inside the window after resize.Launch Size
is greater than110 * 22
, two window frames of different sizes will overlap when the window is initialized. They have different theme colors and own three buttons in the upper right corner.Rows
exceeds22
, although it stands to reason that the number ofColumns
does not change during the resize process, the reality is the three buttons in the upper right corner will have a subtle scaling effect.Font Size
without changing theLaunch Size
correctly, the outermost window will become larger and create a new gap. Conversely, reducing theFont Size
will cause the three buttons in the upper right corner to move to the left from outside the visible window.It is not difficult to see from the above mentioned behaviors that the reason for the gap in the background is that the window size, which was calculated by the
Font Size
and theLaunch Size
, was given different results by window showing and it‘s subsequent resizing.It may not be difficult to make the calculation correct, what I'm really trying to say is whether it's possible to strip the resize step during starting up window, although it plays a positive role in the behavior mentioned in this post, but if the size is already calculated correctly when the window is initialized, there is obviously no need for unconditional resize.
Also, the two overlapping window frames are very concerning.
Beta Was this translation helpful? Give feedback.
All reactions