Werner Punz ha scritto:
Not good, can you encapsule the problem down to a single require so that
I can check the affected files for a typo which has introduced the problem?
The code that introduce the problem is the following one:
<script type="text/javascript"><!--
dojo.widget.defineWidget("dojo.widget.TomahawkShedulerResizeHandle", dojo.widget.ResizeHandle, {formId:"_idJsp0",scheduleId:"_idJsp0:schedule1",
targetElmId:"", templateCssString:".dojoHtmlResizeHandle {margin-left: auto;margin-right: auto;left: 0px;float: none; border-width: 0px; border-style: none; border-color:
black; border-right: 0px;position: absolute;bottom: 1px;width: 100%;height: 5px;z-index: 20;cursor: n-resize;background-image: url();line-height: 6px;}",
templateCssPath:dojo.uri.moduleUri("dojo.widget", "templates/ResizeHandle.css"), postCreate:function () { dojo.event.connect(this.domNode,
"onmousedown", this, "_beginSizing"); /*this.domNode.style.right=(this.domNode.parentNode.clientWidth/2)+"px";*/ }, _changeSizing:function (e) { try { if
(!e.clientX || !e.clientY) { return; } } catch (e) { return; } var dx = 0; var dy = this.startPoint.y - e.clientY; var newW = this.startSize.w - dx; var newH =
this.startSize.h - dy; if (this.minSize) { var mb = dojo.html.getMarginBox(this.targetDomNode); if (newW < this.minSize.w) { newW = mb.width; } if (newH < this.minSize.h) {
newH = mb.height; } } if (this.targetWidget) { this.targetWidget.resizeTo(newW, newH); } else { dojo.html.setMarginBox(this.targetDomNode, {width:newW, height:newH}); }
e.preventDefault(); }, _endSizing:function (e) { dojo.widget.ResizeHandle.prototype._endSizing.apply(this, arguments); var actualSize=dojo.byId(this.targetElmId).style.height;
actualSize=actualSize.split('px')[0]; if(actualSize<30){dojo.byId(this.targetElmId).style.height=originalSize+'px'; return false; } fireResizeEvent(this.targetElmId,
actualSize, this.formId, this.scheduleId); }});
//--></script>
...so I think the problem should be into dojo.widget.ResizeHandle
introduced programmatically here: DojoUtils.addRequire(context,
component, new String[]{"dojo.dnd.*","dojo.event.*",
"dojo.widget.ResizeHandle"});
In the log i read "GRAVE: Error while serving resource:
dojo.DojoResourceLoader/src/widget/templates/images/tab_close.gif,
message : null"
I'll remain tuned on this problem (plz let me know the progress)!
--
Luca Conte
IT Solutions
[EMAIL PROTECTED]
Sinesy srl - Gruppo Tecnoinformatica
Via Comunale di Camino, 22/D - 31046 Oderzo (TV)
www.tinet.it
Servizio Clienti:
Tel. 199.117701 - Fax 0422.814481