git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 66be95f3a931e6fd23354e931d1a9f2029748f97

tweak preview positioning

Matt McKegg committed on 10/17/2017, 2:24:06 AM
Parent: 19d40e88fd60bad60f36861b5c35004cf8e1b0f1

Files changed

main-window.jschanged
main-window.jsView
@@ -153,9 +153,9 @@
153153 var width = 510
154154 var maxLeft = window.innerWidth - width
155155 var maxTop = window.innerHeight - 100
156156 var distanceFromRight = window.innerWidth - rect.right
157- var shouldDisplayBeside = rect.bottom > maxTop || rect.left < 100 || distanceFromRight < 100
157+ var shouldDisplayBeside = rect.bottom > maxTop || rect.left < 50 || distanceFromRight < 50
158158
159159 if (shouldDisplayBeside && rect.bottom > 50) {
160160 if (rect.right > maxLeft && (rect.left - width) < 0) {
161161 // no room, just give up!

Built with git-ssb-web