@caweb/framework 1.9.14 → 1.9.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/build/delta.asset.php +1 -1
  2. package/build/delta.js +1 -12
  3. package/build/delta.js.map +1 -1
  4. package/build/delta.min.asset.php +1 -1
  5. package/build/delta.min.js +1 -1
  6. package/build/delta.min.js.map +1 -1
  7. package/build/eureka.asset.php +1 -1
  8. package/build/eureka.js +1 -12
  9. package/build/eureka.js.map +1 -1
  10. package/build/eureka.min.asset.php +1 -1
  11. package/build/eureka.min.js +1 -1
  12. package/build/eureka.min.js.map +1 -1
  13. package/build/mono.asset.php +1 -1
  14. package/build/mono.js +1 -12
  15. package/build/mono.js.map +1 -1
  16. package/build/mono.min.asset.php +1 -1
  17. package/build/mono.min.js +1 -1
  18. package/build/mono.min.js.map +1 -1
  19. package/build/oceanside.asset.php +1 -1
  20. package/build/oceanside.js +1 -12
  21. package/build/oceanside.js.map +1 -1
  22. package/build/oceanside.min.asset.php +1 -1
  23. package/build/oceanside.min.js +1 -1
  24. package/build/oceanside.min.js.map +1 -1
  25. package/build/orangecounty.asset.php +1 -1
  26. package/build/orangecounty.js +1 -12
  27. package/build/orangecounty.js.map +1 -1
  28. package/build/orangecounty.min.asset.php +1 -1
  29. package/build/orangecounty.min.js +1 -1
  30. package/build/orangecounty.min.js.map +1 -1
  31. package/build/pasorobles.asset.php +1 -1
  32. package/build/pasorobles.js +1 -12
  33. package/build/pasorobles.js.map +1 -1
  34. package/build/pasorobles.min.asset.php +1 -1
  35. package/build/pasorobles.min.js +1 -1
  36. package/build/pasorobles.min.js.map +1 -1
  37. package/build/sacramento.asset.php +1 -1
  38. package/build/sacramento.js +1 -12
  39. package/build/sacramento.js.map +1 -1
  40. package/build/sacramento.min.asset.php +1 -1
  41. package/build/sacramento.min.js +1 -1
  42. package/build/sacramento.min.js.map +1 -1
  43. package/build/santabarbara.asset.php +1 -1
  44. package/build/santabarbara.js +1 -12
  45. package/build/santabarbara.js.map +1 -1
  46. package/build/santabarbara.min.asset.php +1 -1
  47. package/build/santabarbara.min.js +1 -1
  48. package/build/santabarbara.min.js.map +1 -1
  49. package/build/santacruz.asset.php +1 -1
  50. package/build/santacruz.js +1 -12
  51. package/build/santacruz.js.map +1 -1
  52. package/build/santacruz.min.asset.php +1 -1
  53. package/build/santacruz.min.js +1 -1
  54. package/build/santacruz.min.js.map +1 -1
  55. package/build/shasta.asset.php +1 -1
  56. package/build/shasta.js +1 -12
  57. package/build/shasta.js.map +1 -1
  58. package/build/shasta.min.asset.php +1 -1
  59. package/build/shasta.min.js +1 -1
  60. package/build/shasta.min.js.map +1 -1
  61. package/build/sierra.asset.php +1 -1
  62. package/build/sierra.js +1 -12
  63. package/build/sierra.js.map +1 -1
  64. package/build/sierra.min.asset.php +1 -1
  65. package/build/sierra.min.js +1 -1
  66. package/build/sierra.min.js.map +1 -1
  67. package/build/trinity.asset.php +1 -1
  68. package/build/trinity.js +1 -12
  69. package/build/trinity.js.map +1 -1
  70. package/build/trinity.min.asset.php +1 -1
  71. package/build/trinity.min.js +1 -1
  72. package/build/trinity.min.js.map +1 -1
  73. package/package.json +1 -1
  74. package/src/scripts/components/header.js +1 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/framework",
3
- "version": "1.9.14",
3
+ "version": "1.9.16",
4
4
  "description": "Official CAWebPublishing Framework frontend toolkit",
5
5
  "author": "CAWebPublishing",
6
6
  "homepage": "https://github.com/CAWebPublishing/framework#readme",
@@ -90,20 +90,9 @@ window.addEventListener('load', () => {
90
90
  // for each element with an id we add the scroll-margin-top
91
91
  const updateScrollMarginTop = (/** @type Element */ element) => {
92
92
 
93
- // lets collect the height of any fixed elements above the header.
94
- let current = header?.previousElementSibling;
95
- let topOffset = 0;
96
-
97
- while( current ){
98
- // if current element has a fixed/absolute position, add its height to the topOffset.
99
- if( current instanceof HTMLElement && ['fixed', 'absolute'].includes(window.getComputedStyle(current).position) ){
100
- topOffset += current.clientHeight ;
101
- }
102
- current = current.previousElementSibling;
103
- }
93
+ let scrollMarginHeight = header?.clientHeight;
104
94
 
105
95
  if( element instanceof HTMLElement ){
106
- let scrollMarginHeight = header.clientHeight + topOffset;
107
96
 
108
97
  // if the elements offsetTop is greater than twice the header size,
109
98
  // we can assume the header is compacted