Closed mahsashadi closed 3 years ago
I need the window position to be changed by resizing the desktop
Reading this, I'm not sure if you want to make all windows clamp to the viewport or just the one you're developing.
There's a method called win.clampToViewport()
that does exactly what you need, that can be used for this purpose. I can add it so this is automatically called when the viewport is resized for all windows.
I need to have this functionality for applications and also for developed widgets.
Going to assume you meant windows there. OK, I'll look into this.
Could you open an issue in osjs-widgets about this as well ? I cannot implement that behavior in this repo.
I've published osjs-client 3.2.0
which contains this change and is enabled by default.
Let me know how it works out :)
Thank you, now it works as I need :)
Great!
Hi I am developing an application in Osjs. I need the window position to be changed by resizing the desktop. Currently position of all windows remained fixed as the desktop resizes.