Skip to content

Commit 2170ff4

Browse files
authored
Merge pull request #12 from DHTMLX/dev/text-wrap
[fix] rename textWrap to wrapText for consistency in datasets.js and …
2 parents 8cf9bf8 + 116d25b commit 2170ff4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/datasets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ var example = {
854854
background: "rgba(247,247,247,1)",
855855
fontSize: "13.333333px",
856856
format: "General",
857-
textWrap: true
857+
wrapText: true
858858
}
859859
],
860860
};

src/style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ fn style_to_props(styles: &HashMap<String, Value>) -> StyleProps {
291291
"borderRight" => border.right = value.as_str().and_then(|s| str_to_border(s, BorderPosition::Right)),
292292
"borderBottom" => border.bottom = value.as_str().and_then(|s| str_to_border(s, BorderPosition::Bottom)),
293293
"borderLeft" => border.left = value.as_str().and_then(|s| str_to_border(s, BorderPosition::Left)),
294-
"textWrap" => {
294+
"wrapText" => {
295295
// accept boolean, string or number values
296296
match value {
297297
Value::Bool(b) => st.wrap_text = *b,

0 commit comments

Comments
 (0)