Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slanted Right Edge When Hiding Close Button #65

Closed
donlee8 opened this issue Jun 26, 2013 · 3 comments
Closed

Slanted Right Edge When Hiding Close Button #65

donlee8 opened this issue Jun 26, 2013 · 3 comments

Comments

@donlee8
Copy link

donlee8 commented Jun 26, 2013

First off just want to say how great this framework is and how easy it is to work with.

I'm using a tooltip as a notification list and would like to hide the close button. I've set the following options:

closeButtonRadius: 0,
closeButtonCrossSize: 0,
closeButtonLinkOverscan: 0

This successfully hides the close button but the tooltip's right edge is slanted now. Here's a screengrab:

tooltip

I've highlighted the canvas element in Chrome's JS debugging tool and you can see the right edge is slanted. I understand that it's probably not intended to set the close button properties to 0 but is there any way this can be fixed?

@enyo
Copy link
Owner

enyo commented Jun 26, 2013

Yep you're right.. it shouldn't be set to 0. Although I could have prepared for that scenario I decided against it, since it introduces unnecessary code.

Why do you have a close button in the first place? When you don't set hideOn: "closeButton" it won't add a close button.

Hope that helps.

@enyo enyo closed this as completed Jun 26, 2013
@donlee8
Copy link
Author

donlee8 commented Jun 26, 2013

Ahh thanks, that makes sense. I added hideOn: 'load' so it would stay open.

@pioterj
Copy link

pioterj commented Sep 22, 2013

I noticed this effect when having close button enabled. I'd like to have close button completely contained in the tooltip but I ended up with this slant effect.

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

No branches or pull requests

3 participants