Have a
jpg image that needs to be:
- Opened and displayed
- Resizeable using its lower-right corner
- Draggable around the screen
- Closeable
When first opened, it needs to be resized to fit inside whichever parent element is holding it ... a <div> maybe?
There should be no scrollbars. Whatever size the parent is dragged to then that is the size of the
jpg (but it remains the same ratio).
I thought this would be simple, but nothing I tried so far has worked. Tried <img>. Tried background-image. I must be missing something.
Tools we use here are HTML5, CSS3, jQuery, and JavaScript.
Chrome is the web browser used internally.
Unless you have infinite time + money on your hands for this development, likely best to use an existing Javascript Window System library.
Try these searches...
site:github.com javascript window system
site:github.com jquery window system
Likely best to use a JQuery based library, so you leverage all the JQuery code.