« Return to Thread: dojo.lfx.rounded: corners and borders same width?

dojo.lfx.rounded: corners and borders same width?

by Valerio Schiavoni :: Rate this Message:

Reply to Author | View in Thread

hello,
i'm using the rounded.js function in dojo.lfx.rounded with the following values:

dojo.lfx.rounded({
    tl:{ radius:15 },
    tr:{ radius:15 },
    bl:{ radius:15 },
    br:{ radius:15 },
    },
    ["roundit"]
    );
};

and the css for the div id="roundit" looks like:
#roundit {
    border:1px solid #ccc;
    position:absolute;
}

i get a strange effect where borders and corners have different size. i know where it came from (looking at sources, for every corner there something like:
corner.style.marginLeft=options.radii[cc]-(format.borderWidth*2)+"px";

but what if i want to have both corners and borders of width 1px ?

thanks a lot,
valerio
--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest@...
http://dojotoolkit.org/mailman/listinfo/dojo-interest

 « Return to Thread: dojo.lfx.rounded: corners and borders same width?