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

show() method - position and size of the displayed window #18

Open
JerryFox opened this issue Dec 9, 2023 · 1 comment
Open

show() method - position and size of the displayed window #18

JerryFox opened this issue Dec 9, 2023 · 1 comment

Comments

@JerryFox
Copy link

JerryFox commented Dec 9, 2023

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.

What about it?

Thanks for your answer!

Jaroslav

@andrewteta
Copy link

have you tried setting window.set_size(width, height) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants