annarinehart / curved-corner

Automatically exported from code.google.com/p/curved-corner
0 stars 0 forks source link

Suggestion for additional line of code #39

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I recommend adding this line of code to the htc file, which will clip the
border properly if the target is also clipped:

rect.style.clip = 'rect(' + this.currentStyle.clipTop + ' ' +
this.currentStyle.clipRight + ' ' + this.currentStyle.clipBottom + ' ' +
this.currentStyle.clipLeft + ')';

This allows very interesting possibilities, including having only 1 or 2
curved corners if you clip certain areas.

Regards,

Alex

Original issue reported on code.google.com by alexande...@gmail.com on 19 May 2010 at 6:49

GoogleCodeExporter commented 8 years ago
Where in the file would those modifications go?
I've tried it in the most obvious place (line 91 after rect.style.zIndex = 
el_zindex - 1;)
But that doesnt seem to do anything.

Would be hugely useful if this aproached could be made to work on individual 
corners.

Thanks
Alan

Original comment by the...@gmail.com on 23 Aug 2010 at 3:01