Skip to content

Commit 3754007

Browse files
authored
Merge pull request #685 from processing/fix/colorpicker
Fix color pickers getting cut off
2 parents 70cae56 + 43db7d9 commit 3754007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/components/CodeEmbed/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const CodeEmbed = (props) => {
4545
const largeSketch = previewWidth && previewWidth > 770 - 60;
4646

4747
// Quick hack to make room for DOM that gets added below the canvas by default
48-
const domMatch = /create(Button|Select|P|Div|Input)/.exec(initialCode);
48+
const domMatch = /create(Button|Select|P|Div|Input|ColorPicker)/.exec(initialCode);
4949
if (domMatch && previewHeight) {
5050
previewHeight += 100;
5151
}

0 commit comments

Comments
 (0)