Skip to content

Commit

Permalink
fix scrolling on markup vis (#2644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanna Scott authored Apr 20, 2017
1 parent 84fa0d1 commit af4bd40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion superset/assets/visualizations/markup.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.markup.slice_container {
padding: 10px;
overflow: auto;
}
.separator {
background-color: transparent !important;
Expand Down
4 changes: 4 additions & 0 deletions superset/assets/visualizations/markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ require('./markup.css');

function markupWidget(slice, payload) {
$('#code').attr('rows', '15');
slice.container.css({
overflow: 'auto',
height: slice.container.height(),
});
slice.container.html(payload.data.html);
}

Expand Down

0 comments on commit af4bd40

Please sign in to comment.