<%inherit file="project/addon/widget.mako"/>

<div id="markdownRender" class="break-word scripted preview">
    % if wiki_content:
        ${wiki_content}
    % else:
        <p><em>No wiki content</em></p>
    % endif
</div>

<div id="more_link">
    % if more:
        <a href="${node['url']}${short_name}/">Read More</a>
    % endif
</div>

<script>
    window.contextVars = $.extend(true, {}, window.contextVars, {
        wikiWidget: true,
        usePythonRender: ${ use_python_render | sjson, n },
        urls: {
            wikiContent: ${wiki_content_url | sjson, n }
        }
    })
</script>

<style>
.preview {
    max-height:300px; 
    overflow-y: scroll; 
    padding-right: 10px;
}
</style>

<%inherit file="project/addon/widget.mako"/>

<div id="markdownRender" class="break-word scripted preview">
    % if wiki_content:
        ${wiki_content}
    % else:
        <p><em>No wiki content</em></p>
    % endif
</div>

<div id="more_link">
    % if more:
        <a href="${node['url']}${short_name}/">Read More</a>
    % endif
</div>

<script>
    window.contextVars = $.extend(true, {}, window.contextVars, {
        wikiWidget: true,
        usePythonRender: ${ use_python_render | sjson, n },
        urls: {
            wikiContent: ${wiki_content_url | sjson, n }
        }
    })
</script>

<style>
.preview {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}
</style>

Change scroll to auto to hide when unneeded
Change scroll to auto to hide when unneeded
