Skip to content

Inset the corner by 10 pixels instead of 5 #433

Open
blackketter wants to merge 1 commit intonchudleigh:masterfrom
blackketter:master
Open

Inset the corner by 10 pixels instead of 5 #433
blackketter wants to merge 1 commit intonchudleigh:masterfrom
blackketter:master

Conversation

@blackketter
Copy link

and keep in the lower-left corner. Fixes many cases for me, can't find any examples that are worse.

@dexterleng
Copy link
Collaborator

Could you point me to some examples that previously didn't work but now do?

x: element.frame.origin.x + 5,
y: element.frame.origin.y + element.frame.height - 5
// inset from corner by 10 pixels, but no more than halfway
x: element.frame.origin.x + min(element.frame.width / 2, 10),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not overshooting when jumping by a magic number is a great idea

@blackketter
Copy link
Author

Could you point me to some examples that previously didn't work but now do?

Sorry, should have referenced my last comment in #373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments