Fix some hover issues caused by me being a n00b when I wrote them

This commit is contained in:
Zixaphir 2014-01-17 12:49:56 -07:00
parent 45b8b07aec
commit 8e1469ed55
5 changed files with 27 additions and 31 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.8.5 - 2014-01-14
* appchan x - Version 2.8.5 - 2014-01-17
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -338,10 +338,10 @@ UI = do ->
hover = (e) ->
@latestEvent = e
height = @el.offsetHeight
height = @el.offsetHeight + 25
{clientX, clientY} = e
top = clientY + (if close then 0 else -120)
top = clientY + (if @close then 0 else -95)
top = if @clientHeight <= height or top <= 0
0
else if top + height >= @clientHeight
@ -349,15 +349,14 @@ UI = do ->
else
top
[left, right] = if close or clientX <= @clientWidth - 400
[left, right] = if @close or clientX <= @clientWidth - 400
[clientX + (if @close then 15 else 45) + 'px', null]
else
[null, @clientWidth - clientX + 45 + 'px']
{style} = @
style.top = top + 'px'
style.left = left
style.right = right
@style.top = top + 'px'
@style.left = left
@style.right = right
hoverend = (e) ->
return if e.type is 'keydown' and e.keyCode isnt 13 or e.target.nodeName is "TEXTAREA"
@ -371,7 +370,6 @@ UI = do ->
<% } %>
@cb.call @ if @cb
return {
dialog: dialog
Menu: Menu

View File

@ -818,8 +818,8 @@ th {
}
#ihover {
position: fixed;
max-height: 97%;
max-width: 75%;
max-height: 94vh;
max-width: 75vw;
z-index: 22;
}
#qp {