EikosPartners / windowmanagerjs

A framework to manage multiple dockable HTML windows.
https://eikospartners.github.io/windowmanagerjs/
MIT License
26 stars 1 forks source link

Turn off snaping and docking for framed windows #10

Open aesalazar opened 7 years ago

aesalazar commented 7 years ago

Snapping and dragging should only apply to frameless windows. Currently frame in startup option of windowmanager defaults to true which should remain. But this should mean that the ability to snap and drag groups of windows should not apply to it.

If the user sets frame to false then that window can snap/dock to other windows that also have that same setting at false. The exception would be in the browser environment where all the iframes are always frameless and the main window is N/A.

There should also be an option called framelessHeader (or something to that effect) that defaults to true which indicates that if the frame option is false it should show a default header with a min,max, and close button with basic styling. The user should have the ability to override it in some way. If they set it to false it is on them to create a window header.

fixes #9

Dillonu commented 7 years ago

Disabled snap and dock when window is framed. Commit e77f4ee6a9e4bf9bcd3b53236f2b1a11edaf4ad5