Skip to content

Commit

Permalink
Updated changelog for previous two versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sauve committed Jun 4, 2014
1 parent 64066ad commit a30e193
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.0.0
- Removed the `positionNextToBlock` option that allowed you to set where the popover would be appended to. Since the popovers now use absolute positioning, the popover element will always be appended to the `.footnote-container` element that also holds the button. Removed `appendPopoversTo` property for the same reasons.
- Added the `maxWidthRelativeTo` option. Because the popovers now use absolute positioning relative to the container of the footnote button, `max-width` declarations with percentages will not yield the result they used to (when popovers could be appended to any element). By default, max-width declarations in set in percentages will be sized by the script relative to the viewport. If you specify an element or selector for `maxWidthRelativeTo`, that element's width will instead be used to size the popover (unless the viewport is smaller than the specified element, in which case the viewport will still be used to prevent any part of the footnote from going off-screen). For example, if you specify `.main-content` for the `maxWidthRelativeTo` property, the script will measure this element's width, take the smaller of it and the viewport's width (`window.innerWidth`), and multiply the percentage value from your CSS times the result to calculate the max-width of the popover. A bit convoluted, but necessary to allow for better performance and to prevent issues where fixed positioning can't be used (i.e., zoomed in on mobile browsers).
- Updated popover styles to support the new positioning/ sizing algorythm.
- Updated popover styles to support the new positioning/ sizing algorythm.

# 2.0.1
- Fixed an issue where only the first escaped tag would be rendered properly.

0 comments on commit a30e193

Please sign in to comment.