nextapps-de / winbox

WinBox is a modern HTML5 window manager for the web: lightweight, outstanding performance, no dependencies, fully customizable, open source!
Apache License 2.0
6.2k stars 197 forks source link

Resizing window programmatically causes loss of border style #180

Open ordo-n opened 2 months ago

ordo-n commented 2 months ago

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 commented 2 months ago

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.