Ghost/ghost/admin/app/modifiers
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
..
autofocus.js Update dependency ember-power-select to v4 (#1528) 2020-05-17 22:35:53 +01:00
movable.js Added repositioning of settings panel when it's size adjusts 2021-11-12 18:45:03 +00:00
scroll-to.js Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00
scroll-top.js Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00