enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

Slanted Right Edge When Hiding Close Button #65

Closed donlee8 closed 11 years ago

donlee8 commented 11 years ago

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 commented 11 years ago

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.

donlee8 commented 11 years ago

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

pioterj commented 10 years ago

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.