Skip to content

Commit

Permalink
Remove logging in ColorPicker
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Sep 20, 2024
1 parent 04ebdb8 commit 610f78b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/src/gui/element/ColorPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,15 +594,13 @@ export class ColorPicker extends TransparentPreview {
const popupY = point.top + point.height + 10
const leftRestriction = 15
const rightRestriction = window.innerWidth - this.popup!.clientWidth - 15
console.log(popupX, leftRestriction, rightRestriction)
this.popup!.style.left = `${clamp(
popupX,
leftRestriction,
rightRestriction
)}px`
this.popup!.style.top = `${popupY}px`
if (popupY + this.popup!.clientHeight > window.innerHeight - 15) {
console.log("too low")
this.popup!.style.transformOrigin = `bottom center`
this.popup!.style.top = `${point.top - this.popup!.clientHeight - 10}px`
}
Expand Down

0 comments on commit 610f78b

Please sign in to comment.