Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3cb2f47

Browse files
committed
fix bug with non-string values
1 parentf044df3 commit3cb2f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/traces/bar/cross_trace_calc.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ function estimateAxisPaddingForText(trace, calcTrace) {
788788
){
789789
// count number of lines by counting <br> elements
790790
functioncountLines(text){
791-
constBR_TAG_ALL=/<br\s*\/?>/gi;
791+
if(!text||typeoftext!=='string')return0;
792792
return(text.match(BR_TAG_ALL)||[]).length+1;
793793
}
794794
varnLines=trace.texttemplate

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp