We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d5c64c commit 7b7d0bbCopy full SHA for 7b7d0bb
1 file changed
minified-word-cloud.js
@@ -125,8 +125,14 @@ const wordCloudWords = [
125
new WordCloudWord({ word: "Fort", weight: 1 })
126
];
127
128
-const width = config.widgetFamily === "small" ? 250 : 530;
129
-const height = config.widgetFamily === "large" ? 530 : 250;
+let width, height;
+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
+}
136
137
const wordCloud = new WordCloud({
138
// required
0 commit comments