Replies: 3 comments
-
So after working on the library a little I realise that we already have the However, you're still able to create windows that larger than the Also the window position and size should get updated when the browser window is resized. The |
Beta Was this translation helpful? Give feedback.
-
@kodie did you come up with a workaround for this? I just ran into this issue too |
Beta Was this translation helpful? Give feedback.
-
@gregroyal I did not. This would require a modification to the package and a pull request. |
Beta Was this translation helpful? Give feedback.
-
So I've been working on a very similar JavaScript library as this one but this one is so much further along and just way better in general.
A feature I think would be extremely handy and something I had implemented in my library is the ability to have the window automatically move/resize if the browser window is resized.
For example:
So in this case, even though I have
left
set to 1024, if it makes the window overflow out of the viewport, it would modify theleft
attribute to make the window completely visible in the viewport, and if the viewport is less than 600px wide (what the window'swidth
attribute is set to), it would automatically modify thewidth
attribute to make it fit. Same principle applies totop
andheight
attributes. Also if it's set toviewport
, when the user scrolls the size and position would also be automatically changed.container
could also be set to another element such asdocument.body
.I saw that you mentioned something about implementing a plugins API to extend the winbox functionality, so I'm not sure if you'd want this kind of functionality implemented into winbox core or have it implemented as a plugin but I'd be happy to implement it either way.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions