diff --git a/src/main/java/com/flowingcode/vaadin/addons/demo/SourceCodeViewer.java b/src/main/java/com/flowingcode/vaadin/addons/demo/SourceCodeViewer.java index d8616b1..beb1786 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/demo/SourceCodeViewer.java +++ b/src/main/java/com/flowingcode/vaadin/addons/demo/SourceCodeViewer.java @@ -50,6 +50,7 @@ public SourceCodeViewer(String sourceUrl, Map properties) { public SourceCodeViewer(String url, String language, Map properties) { codeViewer = new Element("code-viewer"); getElement().appendChild(codeViewer); + getElement().getStyle().set("overflow", "auto"); getElement().getStyle().set("display", "flex"); codeViewer.getStyle().set("flex-grow", "1"); setProperties(properties);