Different errors occurs in firefox and chrome when I close my custom widget [message #1044809] |
Fri, 19 April 2013 11:18 |
David Song Messages: 217 Registered: April 2011 |
Senior Member |
|
|
Hi all,
I wrote a chart custom widget with RAP 2.0 feature, and it can be displayed in my RAP 2.0 project, but once I close the dialog or editor which the custom widget layouts in, different errors occur in different browsers. And the error code is just like below,
in Firefox:
Could not process server response:
Error: TypeError: this._clientArea is null
...
in Chrome:
Could not process server response:
Error: TypeError: Cannot call method 'concat' of null
Thank you very much
David
[Updated on: Fri, 19 April 2013 14:21] Report message to a moderator
|
|
|
|
|
Re: Error occurs when I close my custom widget [message #1045506 is a reply to message #1045473] |
Sat, 20 April 2013 11:05 |
David Song Messages: 217 Registered: April 2011 |
Senior Member |
|
|
Thanks Ralf for your help.
After I remove the code below, the chart widget can work well, but it give a error backgroud Invalid negative value for <rect> attribute width="-1" ,
probably the widget's rect is not set without the code below. but it works well.
var area = this.parent.getClientArea();
this.element.style.left = area[0] + "px";
this.element.style.top = area[1] + "px";
the code around /fms, line 51 is the layout function
layout : function() {
var area = this.parent.getClientArea();
this.element.style.left = area[0] + "px";
this.element.style.top = area[1] + "px";
if (!this.isRendered) {
this.chart.setJSONData(this._chartData);
this.chart.render(this.element.id)
}
this.chart.resizeTo( area[2], area[3] );
}
[Updated on: Sat, 20 April 2013 11:16] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03183 seconds