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

Resizing window programmatically causes loss of border style #180

Open
ordo-n opened this issue Jun 21, 2024 · 1 comment
Open

Resizing window programmatically causes loss of border style #180

ordo-n opened this issue Jun 21, 2024 · 1 comment

Comments

@ordo-n
Copy link

ordo-n commented Jun 21, 2024

When I run this code

winbox.resize("50%", "50%");

The window is resized but it loses the border styling, in particular the rounded border, it becomes straight

Using the maximize button and minimize button after this restores the styling so there seems to be a problem with the resize function

@ordo-n
Copy link
Author

ordo-n commented Jun 21, 2024

I managed to get a fix working;

tWinDialog.resize("50%", "50%");
tWinDialog.move("center", "center");
tWinDialog.restore();

It just needs the .restore function calling.

I'll keep this issue open on the off chance that developers familiar with the source code believe restore should be automatically called after the resize. Else please close the issue. Thank-you.

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

1 participant