Ghost/ghost/admin/lib/koenig-editor/addon
Kevin Ansfield cd6d167f77 Added repositioning of settings panel when it's size adjusts
refs https://github.com/TryGhost/Team/issues/1219

- added optional `adjustOnResize` argument to `{{movable}}` modifier
  - when the movable element's size changes (based on a `ResizeObserver` event) the passed in action is called with the element and the current x/y position
  - having this handled via the `{{movable}}` modifier is needed because that's what knows about any CSS translations that are present and allows the drag position to remain in sync with any resize-related adjustments
  - return value of the action is expected to be a new `{x, y}` tuple
- used `adjustOnResize` in the `<KoenigSettingsPanel>` component so that any time the settings panel grows and causes part of it to be off-screen we re-position so that the whole panel is kept on-screen
2021-11-12 18:45:03 +00:00
..
components Added repositioning of settings panel when it's size adjusts 2021-11-12 18:45:03 +00:00
helpers Hid email specific cards from card menus when editing pages 2021-09-10 09:24:38 +01:00
lib Resolved "already declared in upper scope" linting warnings 2020-10-05 09:56:21 +01:00
options First iteration of gifs image selector + card 2021-11-12 16:10:26 +00:00
services Removed prototype button atom 2021-07-23 09:21:03 +01:00
utils Prototyped component based atoms in the editor 2021-07-22 18:54:46 +01:00