Revert "Fix quote preview overflowing in some cases, remove unnecessary stuff."
This reverts commit c5aef27248608cc10a975a46c241dbf7728b7223. what the hell is this crap?
This commit is contained in:
parent
68f511a169
commit
363f799faa
@ -232,7 +232,7 @@
|
|||||||
height = el.offsetHeight;
|
height = el.offsetHeight;
|
||||||
top = clientY - 120;
|
top = clientY - 120;
|
||||||
bot = top + height;
|
bot = top + height;
|
||||||
el.style.top = ui.winHeight < height || top < 0 ? 0 : bot > ui.winHeight ? ui.winHeight - height : top;
|
el.style.top = ui.winHeight < height || top < 0 ? '0px' : bot > ui.winHeight ? ui.winHeight - height + 'px' : top + 'px';
|
||||||
return el.style.left = clientX + 45;
|
return el.style.left = clientX + 45;
|
||||||
},
|
},
|
||||||
hoverend: function(e) {
|
hoverend: function(e) {
|
||||||
@ -1718,8 +1718,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$.show(qp);
|
$.show(qp);
|
||||||
ui.el = qp;
|
return ui.el = qp;
|
||||||
return ui.winHeight = d.body.clientHeight;
|
|
||||||
},
|
},
|
||||||
parse: function(req, id, threadID) {
|
parse: function(req, id, threadID) {
|
||||||
var body, html, op, qp, reply, _i, _len, _ref;
|
var body, html, op, qp, reply, _i, _len, _ref;
|
||||||
@ -1959,7 +1958,8 @@
|
|||||||
el.src = this.parentNode.href;
|
el.src = this.parentNode.href;
|
||||||
$.show(el);
|
$.show(el);
|
||||||
ui.el = el;
|
ui.el = el;
|
||||||
return ui.winHeight = d.body.clientHeight;
|
ui.winHeight = d.body.clientHeight;
|
||||||
|
return ui.winWidth = d.body.clientWidth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -150,11 +150,11 @@ ui =
|
|||||||
bot = top + height
|
bot = top + height
|
||||||
el.style.top =
|
el.style.top =
|
||||||
if ui.winHeight < height or top < 0
|
if ui.winHeight < height or top < 0
|
||||||
0
|
'0px'
|
||||||
else if bot > ui.winHeight
|
else if bot > ui.winHeight
|
||||||
ui.winHeight - height
|
ui.winHeight - height + 'px'
|
||||||
else
|
else
|
||||||
top
|
top + 'px'
|
||||||
el.style.left = clientX + 45
|
el.style.left = clientX + 45
|
||||||
hoverend: (e) ->
|
hoverend: (e) ->
|
||||||
$.hide ui.el
|
$.hide ui.el
|
||||||
@ -1368,7 +1368,6 @@ quotePreview =
|
|||||||
g.requests[threadID] = $.get @href, (-> quotePreview.parse this, id, threadID)
|
g.requests[threadID] = $.get @href, (-> quotePreview.parse this, id, threadID)
|
||||||
$.show qp
|
$.show qp
|
||||||
ui.el = qp
|
ui.el = qp
|
||||||
ui.winHeight = d.body.clientHeight
|
|
||||||
parse: (req, id, threadID) ->
|
parse: (req, id, threadID) ->
|
||||||
qp = $ '#qp'
|
qp = $ '#qp'
|
||||||
return unless qp.innerHTML is "Loading #{id}..."
|
return unless qp.innerHTML is "Loading #{id}..."
|
||||||
@ -1520,6 +1519,7 @@ imageHover =
|
|||||||
$.show el
|
$.show el
|
||||||
ui.el = el
|
ui.el = el
|
||||||
ui.winHeight = d.body.clientHeight
|
ui.winHeight = d.body.clientHeight
|
||||||
|
ui.winWidth = d.body.clientWidth
|
||||||
|
|
||||||
imgPreloading =
|
imgPreloading =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user