Skip to content

Commit

Permalink
Merge pull request elastic#8412 from elastic/jasper/backport/8351/5.x
Browse files Browse the repository at this point in the history
[backport] PR elastic#8351 to 5.x - Prevents lengend from expanding page
  • Loading branch information
tylersmalley authored Sep 21, 2016
2 parents 64f9f1b + fbf3048 commit 9876c88
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
.vis-editor {
.flex-parent();

@media (min-width: @screen-md-min) {
position: absolute;
width: 100%;
height: 100%;
}

.btn-xs {
line-height: 1.3;
}
Expand Down
1 change: 0 additions & 1 deletion src/core_plugins/metric_vis/public/metric_vis.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
align-content: space-around;

.metric-value {
font-weight: bold;
Expand Down
12 changes: 10 additions & 2 deletions src/ui/public/visualize/visualize.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@ visualize {
.vis-container {
display: flex;
flex-direction: row;

flex: 1 0;
overflow: auto;
-webkit-transition: opacity 0.01s;
transition: opacity 0.01s;
flex: 1 1 0;

// IE11 Hack
//
// Normally we would just set flex: 1 1 0%, which works as expected in IE11.
// Unfortunately, a recent bug in Firefox causes this rule to be ignored, so we
// have to use an IE-specific hack instead.
_:-ms-fullscreen, :root & {
flex: 1 0;
}

&.vis-container--legend-left {
flex-direction: row-reverse;
Expand Down

0 comments on commit 9876c88

Please sign in to comment.