diff --git a/src/streams-outliner-lib/language/en-GB/Readme.tid b/src/streams-outliner-lib/language/en-GB/Readme.tid index 7cf2ff4..a0d6c44 100644 --- a/src/streams-outliner-lib/language/en-GB/Readme.tid +++ b/src/streams-outliner-lib/language/en-GB/Readme.tid @@ -102,5 +102,5 @@ title: your-breadcrumbs-view-template * Try to remove scrolling from one of the upper containers. ** e.g. remove the `height: 100vh;` restriction or remove the `overflow-y: auto;` attribute ** Or make container a offsetParent of the context menu, e.g. by adding `position: absolute;top: 0;left: 0;` -* This is because the context menu is positioned relative to [[`offsetParent` of |https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent]], which is typically `document.body`, and if the parent container has If the parent container has scrolling, you will find that no matter how you scroll, the menu is in a fixed position relative to the page, and then the positioning will be wrong relative to the scrolled content. +* This is because the context menu is positioned relative to [[`offsetParent` of |https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent]] the popup element, which is typically `document.body`, and if the parent container has If the parent container has scrolling, you will find that no matter how you scroll, the menu is in a fixed position relative to the page, and then the positioning will be wrong relative to the scrolled content. ** The principle is that `$eventcatcher` listens on `.stream-row` → provides `<>` to `$action-popup` to compute the coordinates to put into `<>` → `$reveal` with `<>` to position the context menu relative to ``.