Commit 66be95f3a931e6fd23354e931d1a9f2029748f97
tweak preview positioning
Matt McKegg committed on 10/17/2017, 2:24:06 AMParent: 19d40e88fd60bad60f36861b5c35004cf8e1b0f1
Files changed
main-window.js | changed |
main-window.js | ||
---|---|---|
@@ -153,9 +153,9 @@ | ||
153 | 153 | var width = 510 |
154 | 154 | var maxLeft = window.innerWidth - width |
155 | 155 | var maxTop = window.innerHeight - 100 |
156 | 156 | 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 | |
158 | 158 | |
159 | 159 | if (shouldDisplayBeside && rect.bottom > 50) { |
160 | 160 | if (rect.right > maxLeft && (rect.left - width) < 0) { |
161 | 161 | // no room, just give up! |
Built with git-ssb-web