Skip to content

Commit 7b7d0bb

Browse files
committed
propogating changes to minified word cloud
1 parent 8d5c64c commit 7b7d0bb

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

minified-word-cloud.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,14 @@ const wordCloudWords = [
125125
new WordCloudWord({ word: "Fort", weight: 1 })
126126
];
127127

128-
const width = config.widgetFamily === "small" ? 250 : 530;
129-
const height = config.widgetFamily === "large" ? 530 : 250;
128+
let width, height;
129+
if (config.runsInWidget) {
130+
width = config.widgetFamily === "small" ? 250 : 530;
131+
height = config.widgetFamily === "large" ? 530 : 250;
132+
} else {
133+
width = 250;
134+
height = 250;
135+
}
130136

131137
const wordCloud = new WordCloud({
132138
// required

0 commit comments

Comments
 (0)