Skip to content

Commit

Permalink
firefox takes flex-shrink:0 very seriously
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Alger committed Jan 7, 2015
1 parent 5564cbb commit 4c136bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/kibana/components/vislib/styles/_layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
.chart-wrapper-row {
.display(flex);
.flex-direction(column);
.flex(1 0 100%);
.flex(1 1 100%);
min-height: 0;
min-width: 0;
}
Expand Down
8 changes: 2 additions & 6 deletions src/kibana/plugins/visualize/editor/styles/editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@
.display(flex);
.flex-direction(column);
overflow: auto;
min-height: 0;
min-width: 0;

&.embedded {
.flex-shrink(1);
Expand All @@ -266,14 +264,12 @@

visualize {
.flex-parent();
.flex(1, 0, auto);
.flex(1, 1, 100%);
}

.visualize-chart {
.flex(1, 0, 100%);
.flex(1, 1, 100%);
position: relative;
min-height: 0;
min-width: 0;
}
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/kibana/styles/_mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
.flex(@grow, @shrink, @basis);
.display(flex);
.flex-direction(column);
min-height: 0;
min-width: 0;

> * {
.flex-shrink(0);
min-height: 0;
min-width: 0;
}
}

Expand Down

0 comments on commit 4c136bd

Please sign in to comment.