Skip to content

Commit

Permalink
dxFunnel: add root class prefix to label group class name (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-simionov authored Aug 18, 2017
1 parent 47dd6ef commit 72d32cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/viz/funnel/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ exports.plugin = {
extenders: {
_initCore: function() {
this._labelsGroup = this._renderer.g().attr({
className: "labels"
className: this._rootClassPrefix + "-labels"
}).append(this._renderer.root);
this._labels = [];
},
Expand Down
2 changes: 1 addition & 1 deletion testing/tests/DevExpress.viz.funnel/funnel.label.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ QUnit.test("Create label group on initialization", function(assert) {

var labelsGroup = this.labelGroup();
assert.equal(labelsGroup.append.lastCall.args[0], this.renderer.root);
assert.equal(labelsGroup.attr.lastCall.args[0].className, "labels");
assert.equal(labelsGroup.attr.lastCall.args[0].className, "dxf-labels");
});

QUnit.test("Create labels", function(assert) {
Expand Down

0 comments on commit 72d32cd

Please sign in to comment.