1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 19:39:57 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/concepts
FlashSystems 3918e59cc1
Fixed PR to fix popup position if popup is triggered from within an offsetParent element (#7013)
* Fix popup location for tables

This commit introduces the `popupAbsCoords` option to the $button widget
and implements an absolut coordinate format.

Coordinates for popups are stored in the format `(x,y,w,h)`. These
coordinates are relative to the offset parent of the element that
defines the popup.

This commits adds a second format `@(x,y,w,h)`. Coordinates specified in
this format a relative to the pages root element.

The `popupAbsCoords` option of the $button widget enables the use of
this coordinates.

* Unify the declaration of the RegEx for parsing the popup-position

The regular expression was declared in three locations with the same
content. This commit supplies a new function `parseCoordinates` in
`popup.js`. This function returns the parsed coordinates and understands
the classic/absolute coordinates.

This function is used in `reveal.js` and `action-popup.js` to parse the
coordinates.

* Add documentation for coordinate systems

* Consolidate creating coordinate strings

The Popup object now contains a `buildCoordinates` method that can be
used to build coordinate strings. It takes an "enum" for the coordinate-
system to use. This makes everything easily extensible and prevents the
use of magic values.

* Add tests for `parseCoordinates` and `buildCoordinates`

* Add `tv-popup-abs-coords` to `collectDOMVariables`

This will make the absolute coordinates available for the
`DraggableWidget` and the `EventCatcherWidget`.

* Add documentation for the `tv-popup-abs-coords`

... to the `DraggableWidget` and the `EventCatcherWidget`.

* Fix crash when generating a static version of the TW

The Popup class is not initialized in `startup.js` if `$tw.browser` is
not true. After having consolidated the facilities for parsing
coordinate strings into `popup.js` this breaks because the static build
needs to parse coordinate stings even if no Popup module is initialized.
This commit solves this problem by making `readPopupState`,
`parseCoordinates` and `buildCoordinates` static methods of `popup.js`.
It also adds a comment to these functions to show that these can be called
safely even if the Popup-Class is not initialized.
2022-12-01 21:16:44 +00:00
..
Cascades.tid Add a cascade for rendering fields within the Edit Template (#6511) 2022-03-17 17:06:24 +00:00
ColourPalettes.tid Fix sizes of SVG icons in documentation 2019-10-13 15:35:36 +01:00
Concepts.tid Add user documentation for cascade mechanism 2021-12-06 16:59:13 +00:00
CoordinateSystems.tid Fixed PR to fix popup position if popup is triggered from within an offsetParent element (#7013) 2022-12-01 21:16:44 +00:00
Current Tiddler.tid Update document in tiddlywiki.com edition 2016-07-06 01:10:51 +09:00
Customizing EditTemplate Field Rendering.tid Fix for Bug #6618 (#6628) 2022-05-14 13:30:04 +01:00
DataTiddlers.tid Cherry-pick JSON docs improvements from #6522 2022-05-23 09:14:02 +01:00
Date Fields.tid Missing docs for working with negative years 2020-12-01 15:51:07 +00:00
DefaultTiddlers.tid Docs: DefaultTiddlers tweaks 2018-03-06 16:14:50 +00:00
DictionaryTiddlers.tid Cherry-pick JSON docs improvements from #6522 2022-05-23 09:14:02 +01:00
Dominant Append.tid Add support for = prefix for filter runs that doesn't remove duplicates 2019-06-10 17:54:20 +01:00
Edit Template Body Cascade.tid Add user documentation for cascade mechanism 2021-12-06 16:59:13 +00:00
ExternalImages.tid Update ExternalImages.tid 2014-12-21 19:32:42 +01:00
Field Editor Cascade.tid Add a cascade for rendering fields within the Edit Template (#6511) 2022-03-17 17:06:24 +00:00
Filters.tid Fix the Advanced search link. ... (#6534) 2022-03-16 15:30:06 +00:00
Hard and Soft Links.tid Update document in tiddlywiki.com edition 2016-07-06 01:10:51 +09:00
InfoPanel.tid Rename "references" to "backlinks" in the tiddler info panel (#5143) 2020-11-29 18:32:22 +00:00
JSONTiddlers.tid Cherry-pick JSON docs improvements from #6522 2022-05-23 09:14:02 +01:00
KeyboardShortcutTiddler.tid Allow global keyboard shortcuts to override all other shortcuts by providing a special field (#6735) 2022-10-07 17:31:04 +01:00
Macros.tid Add support for $:/tags/Macro/View/Body macros 2022-05-05 08:30:05 +01:00
Messages.tid Message tm-open-window enhancements (#6188) 2021-11-17 12:13:01 +00:00
Modules.tid Fix sizes of SVG icons in documentation 2019-10-13 15:35:36 +01:00
ModuleType.tid Tag Definition for tiddler ModuleType (#6256) 2021-11-21 22:19:54 +00:00
Order of Tagged Tiddlers.tid Docs: Clarify ordering of tagged tiddlers 2022-07-29 14:16:09 +01:00
PermaLinks.tid Fix typo in filtered permalink example 2021-04-06 13:13:12 +01:00
Pragma.tid Add doc related to WikiText parser modes (#6415) 2022-01-23 09:44:01 +00:00
Railroad Diagrams.tid Tag additions (#6233) 2021-11-18 08:58:41 +00:00
Selection Constructors.tid Docs: change link (#3152) 2018-03-05 11:36:16 +00:00
ShadowTiddlers.tid Fix some typos in the ViewTolbar button docs (#5974) 2021-08-29 17:50:28 +01:00
Story River.tid Replace '_' to space in tw5.com edition (#2417) 2016-05-02 08:34:30 +01:00
Story Tiddler Template Cascade.tid Add user documentation for cascade mechanism 2021-12-06 16:59:13 +00:00
Story Tiddler Template.tid Add user documentation for cascade mechanism 2021-12-06 16:59:13 +00:00
SystemTags.tid Add support for $:/tags/Macro/View/Body macros 2022-05-05 08:30:05 +01:00
SystemTiddlers.tid Docs: Improve system tiddlers docs 2018-01-13 15:39:44 +00:00
TagTiddlers.tid Docs: Add a new overview of customisation techniques 2021-11-29 09:21:50 +00:00
TemplateTiddlers.tid Overhaul the macro and variable documentation #1519 2015-02-24 17:41:16 +01:00
TextReference.tid Docs: Fix typo in TextReference.tid (#3978) 2019-06-12 22:03:01 +01:00
Tiddler Colour Cascade.tid Add user documentation for cascade mechanism 2021-12-06 16:59:13 +00:00
Tiddler Icon Cascade.tid Add user documentation for cascade mechanism 2021-12-06 16:59:13 +00:00
TiddlerFields.tid Docs missed off 54cfda76ee 2022-01-09 10:18:11 +00:00
TiddlerLinks.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
Tiddlers.tid Update "Tiddlers" docs 2014-11-21 17:06:12 +00:00
TiddlyWiki5.tid Doc restructuring Plugin Install using core Libraries and with Node.js (#6722) 2022-06-20 13:55:12 +01:00
TiddlyWiki.tid Typo: Update TiddlyWiki.tid (#2566) 2017-02-27 16:38:57 +00:00
TiddlyWikiFolders.tid Improve support for bulk loading tiddlers under Node.js 2016-10-15 16:23:17 +01:00
Title List.tid Add some warnings about the dangers of title lists 2022-05-23 08:56:10 +01:00
Title Selection.tid Update document in tiddlywiki.com edition 2016-07-06 01:10:51 +09:00
Transclusion.tid Docs updates and fixing broken links (#4628) 2020-05-06 09:40:42 +01:00
View Template Body Cascade.tid Add user documentation for cascade mechanism 2021-12-06 16:59:13 +00:00
View Template Title Cascade.tid Add user documentation for cascade mechanism 2021-12-06 16:59:13 +00:00
Wiki.tid More reference docs mangling 2014-09-11 15:52:47 +01:00
WikiText.tid Documentation of Using Excise text (#2533) 2018-11-27 21:12:44 +00:00