I get an JavaScript Error when I try to open a WebDesigner Instance.
In the Stimulsoft.Report.Web.Designer.Scripts.Initialize.Controls.InitializeStylesControl.js File stylesControl.repaint Function.
Code: Select all
stylesControl.repaint = function () {
var font = "Arial!8!0!0!0!0";
var brush = "1!transparent";
var textBrush = "1!0,0,0";
var border = "default";
captionInnerContainer.style.top = "0px";
captionInnerContainer.style.margin = "0px";
if (this.typeComponent == "StiChart" || this.typeComponent == "StiGauge" || this.typeComponent == "StiCrossTab" || this.typeComponent == "StiTable") {
this.jsObject.RepaintControlByAttributes(button.caption, font, brush, textBrush, border);
if (this.key != "[None]" && this.key != "StiEmptyValue") {
button.caption.style.border = "0px";
if (this.typeComponent == "StiChart" || this.typeComponent == "StiMap") {
captionInnerContainer.style.margin = "-10px -10px -9px -10px";
}
else if (this.typeComponent == "StiGauge") {
captionInnerContainer.style.margin = "0px 0px 0px -10px";
}
}
}
else {
if (this.jsObject.options.report) {
var stylesCollection = this.jsObject.options.report.stylesCollection;
for (var i in stylesCollection) {
var properties = stylesCollection[i].properties;
if (properties.name == this.key) {
if (properties["font"] != null && properties["allowUseFont"]) font = properties.font;
if (properties["brush"] != null && properties["allowUseBrush"]) brush = properties.brush;
if (properties["textBrush"] != null && properties["allowUseTextBrush"]) textBrush = properties.textBrush;
if (properties["border"] != null && properties["allowUseBorderSides"]) border = properties.border;
}
}
}
var captionInnerContainerHeight = parseInt(font.split("!")[1]) * 1.33;
captionInnerContainer.style.top = (captionInnerContainerHeight > captionContainer.maxHeight ? ((captionInnerContainerHeight - captionContainer.maxHeight) / 2 * -1) : 0) + "px";
this.jsObject.RepaintControlByAttributes(button.caption, font, brush, textBrush, border);
}
}
Regards