Skip to content

Commit

Permalink
Update Readme.tid
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Jan 2, 2025
1 parent 1cb0852 commit b48bf0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streams-outliner-lib/language/en-GB/Readme.tid
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<<tv-popup-abs-coords>>` to `$action-popup` to compute the coordinates to put into `<<contextmenu-state>>` → `$reveal` with `<<contextmenu-state>>` to position the context menu relative to `<body>`.

0 comments on commit b48bf0b

Please sign in to comment.