You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
show() method - position and size of the displayed window #18
How is it with the size and position of the displayed window?
my experiences:
myWindow.show(html) - html code in a variable
The first call of the show() method - the window is displayed with some initial size (relatively small) at some position. When I resize or move the window and then close it, the next call of the show() method displays the window with the last size at the last position. It is a GOOD behavior in my opinion.
myWindow.show("file.html") - html code in a file
The first call of the show() method displays somewhere a window bigger of the one in the first case. After resizing (or moving) and closing the window the next call of the show() method again displays a window of the initial size at the initial position independently of the former moving or resizing. It is a BAD behavior in my opinion.
Activity
andrewteta commentedon Jan 16, 2024
have you tried setting window.set_size(width, height) ?