on master help sign in
Fix links, hopefully for real this time
94d6f7fEvan Czaplicki
runtime/Render/Element.js+11−3
@@ -23,6 +23,8 @@ function setProps(props, e) {
23 a.style.top = 0;
23 a.style.top = 0;
24 a.style.left = 0;
24 a.style.left = 0;
25 a.style.display = 'block';
25 a.style.display = 'block';
26+ a.style.position = 'absolute';
27+ e.style.position = 'relative';
26 e.appendChild(a);
28 e.appendChild(a);
27 }
29 }
28 if (props.hover.ctor !== '_Tuple0') {
30 if (props.hover.ctor !== '_Tuple0') {
@@ -259,10 +261,16 @@ function updateProps(node, curr, next) {
259 if (currP.href === '') {
261 if (currP.href === '') {
260 var a = newElement('a');
262 var a = newElement('a');
261 a.href = props.href;
263 a.href = props.href;
264+ a.style.width = '100%';
265+ a.style.height = '100%';
266+ a.style.top = 0;
267+ a.style.left = 0;
268+ a.style.display = 'block';
269+ a.style.position = 'absolute';
270+ e.style.position = 'relative';
262− a.appendChild(e);
271+ e.appendChild(a);
263− e.parentNode.replaceChild(a,e);
264 } else {
272 } else {
265− node.parentNode.href = props.href;
273+ node.lastNode.href = props.href;
266 }
274 }
267 }
275 }
268}
276}