dojo.lfx.rounded
Hi,
I'm having little problem with magnificent dojo.lfx.rounded. In IE, i
get, invalid property value when dojo.lfx.rounded._fns.draw() is called
with third argument as "#NaNfbNan". I think somewhere in IE, the color
cannot be gathered and passed as NaN which is invalid.
Are there any fixes for this bug? I'm using daily svn.
thanks.
evrim.
Here is the CSS:
.header {
color:#FFFFFF;
font-weight:bold;
background-color:#031C3E;
width: 100%;
height: 60px;
border:1px solid black;
}
Some HTML:
Backtrack:
draw:function(x, y, color, opac, height, corner, image, radius, top, format){
var px=document.createElement("div");
px.style.height=height+"px"
px.style.width="1px";
px.style.position="absolute";
px.style.fontSize="1px";
px.style.overflow="hidden";
if(image==-1 && format.bgImage!=""){
px.style.backgroundImage=format.bgImage;
px.style.backgroundPosition="-"+(format.width-(radius-x)+format.borderWidth) +"px-"+((format.height+top+y)-format.borderWidth)+"px";
} else {
px.style.backgroundColor=color; <--- ***DEBUGGER enters here***
}
if(opac!=100){ dojo.html.setOpacity(px, (opac/100)); }
px.style.top=y+"px";
px.style.left=x+"px";
corner.appendChild(px);
},
Dojo Forum
Comments
Evrim ULU wrote:
replacing border statment with 1px solid #000000; did what it is
supposed to be.
thnx.evrim.
Hi All
I tried using dojo.lfx.rounded on a div inside a dojo.widget.Dialog :
rounded: { tl:{radius:15},tr:{radius:15},bl:{radius:15},br:
{radius:15} },
fillInTemplate: function(args, frag) {
dojo.html.hide(this.logInNode);
dojo.html.hide(this.logOutNode);
this.loginAuthDialogWidget =
dojo.widget.createWidget("dojo:Dialog", { toggle:"fade",
toggleDuration:250}, this.logInAuthDialogNode);
dojo.lfx.rounded(this.rounded, "rounded");
this.loginAuthDialogWidget.setCloseControl(dojo.byId
("userWidgetLoginAuthCancel"));
},
The template :
Loginyou are not not logged in.
Logout
Authenticating
Complete the authentication in this page, then click
this OK button to continue.
OK
Cancel
What happens when I add the rounding using dojo.lfx.rounded
(this.rounded, "rounded"); is that all of the buttons in the dialog
stop working.
This includes buttons that use @dojoOnClick and dialog.setCloseControl.
Is this a known issue, or an I doing something wrong ?
thanks for any suggestions
regards Jeremy
On 12 Jan 2007, at 18:53, Evrim ULU wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2585 bytes
Desc: not available
Url : http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070115/271e...
It's a known issue; the port of the original I did uses innerHTML to move the
contents of the original container into the auto-padded one.
trt
Jeremy Quinn wrote:
--
View this message in context: http://www.nabble.com/dojo.lfx.rounded-tf2967591.html#a8376420
Sent from the Dojo mailing list archive at Nabble.com.
Many thanks Tom,
Yes, I can confirm that if you turn off autopad :
rounded: { tl:{radius:15},tr:{radius:15},bl:{radius:15},br:{radius:
15}, autoPad:false }
. . .
dojo.lfx.rounded(this.rounded, "rounded");
I do not loose clicks in the content.
regards Jeremy
On 15 Jan 2007, at 18:59, Tom Trenka wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2585 bytes
Desc: not available
Url : http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070116/dec8...