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

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

by Valerio Schiavoni :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
even more, those rounded boxes shown here:
http://archive.dojotoolkit.org/nightly/demos/widget/rounded.html

look much nicer !

i know that dojoType="Rounded" is going to be removed later on (that's why I was told in a previous post), but...

On 10/20/06, Valerio Schiavoni <valerio.schiavoni@...> wrote:
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



--
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?