Skip to content

Commit

Permalink
Merge pull request #2005 from spenceralger/embedded-vis
Browse files Browse the repository at this point in the history
Fix embedded vis height
  • Loading branch information
spenceralger committed Nov 21, 2014
2 parents 46e3977 + fb1484a commit 37e9232
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/kibana/plugins/visualize/editor/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
reset="resetEditableVis();">
</vis-editor-sidebar>

<div class="vis-editor-canvas">
<div class="vis-editor-canvas" ng-class="{ embedded: appEmbedded }">
<h3 class="vis-editor-canvas-title" ng-if="savedVis.id" bindonce bo-bind="savedVis.title"></h3>
<visualize vis="vis" editable-vis="editableVis" search-source="savedVis.searchSource"></visualize>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/kibana/plugins/visualize/editor/styles/editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@
.flex-direction(column);
overflow: auto;

&.embedded {
.flex-shrink(1);
.flex-basis(100%);
}

// overrided for tablet and desktop
@media (min-width: @screen-md-min) {
.flex-shrink(1);
Expand Down

0 comments on commit 37e9232

Please sign in to comment.