Skip to content

Commit 26fd12f

Browse files
paodbjavier-godoy
authored andcommitted
refactor: move style to css to avoid overriding on dnd
When testing new feature "hybrid" with dnd, the style for no background was being ignored. Moving it to the stylesheet makes it not visible even when doing dnd as expected.
1 parent 12f9497 commit 26fd12f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/resources/META-INF/frontend/fc-orgchart.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ class FCOrgChart extends PolymerElement {
118118
}
119119

120120
$("div.orgchart").prev().closest("div").attr("id", "chart-container");
121-
this.querySelector(".orgchart").style.setProperty("background-image","none");
122121

123122
// workaround for direction b2t with node template without content div
124123
var direction = state.chartDirection;

src/main/resources/META-INF/resources/frontend/fc-orgchart-styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@
2626
.orgchart .node .content {
2727
overflow: hidden;
2828
}
29+
30+
.orgchart {
31+
background-image: none;
32+
}

0 commit comments

Comments
 (0)