[patch][cla] dojox.widget.Toaster - add center position
i like it to have the toaster messages in the top center of my app so i added the following code to the Toaster Widget:
Index: dojox/widget/Toaster.js
===================================================================
--- dojox/widget/Toaster.js (revision 24144)
+++ dojox/widget/Toaster.js (working copy)
@@ -232,6 +232,8 @@
style.left = (view.w - nodeSize.w - 1 - view.l)+"px";
}else if(pd.match(/^[tb]l-/)){
style.left = 0 + "px";
+ }else if(pd.match(/^[tb]c-/)){
+ style.left = ((view.w - nodeSize.w - 1 - view.l)/2)+"px";
}
style.clip = "rect(0px, " + nodeSize.w + "px, " + nodeSize.h + "px, 0px)";
with some css applied (rounded borders and shadows) it looks really cool ;-)
Change History (3)
Summary: |
dojox.widget.Toaster - add center position →
[patch][cla] dojox.widget.Toaster - add center position
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
In [30910]: