From a03a911e7c3d7b15a8e057cc1651d95817ae61f4 Mon Sep 17 00:00:00 2001 From: Ojan Vafai Date: Mon, 6 Apr 2015 16:44:12 -0700 Subject: [PATCH] Remove all uses of display:block and display:inline-block. -Make display:flex, flex-direction: column, flex-shrink: 1 the default. -Simplify StyleAdjuster::adjustStyleForAlignment to remove special cases we won't need as we make flex the default and remove absolute positioning. -Fix a bug this exposed in column flexboxes where we'd apply the wrong edge of border/padding/margin. -For now leave the default of align-items:stretch. The main change here is that iframe/img will do width:auto the same as blocks (i.e. the width of the parent). I think this is a good change, but we'll have to see how it feels in practice. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1061163002 --- examples/stocks/lib/stock_arrow.dart | 1 + examples/stocks/lib/stock_row.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/stocks/lib/stock_arrow.dart b/examples/stocks/lib/stock_arrow.dart index 9ca249a4a9..78a4b66ee7 100644 --- a/examples/stocks/lib/stock_arrow.dart +++ b/examples/stocks/lib/stock_arrow.dart @@ -10,6 +10,7 @@ class StockArrow extends Component { width: 40px; height: 40px; display: flex; + flex-direction: row; align-items: center; justify-content: center; border-radius: 40px; diff --git a/examples/stocks/lib/stock_row.dart b/examples/stocks/lib/stock_row.dart index 235183b3c6..1b4578aff0 100644 --- a/examples/stocks/lib/stock_row.dart +++ b/examples/stocks/lib/stock_row.dart @@ -11,6 +11,7 @@ import 'stock_data.dart'; class StockRow extends Component { static final Style _style = new Style(''' display: flex; + flex-direction: row; align-items: center; border-bottom: 1px solid #F4F4F4; padding-top: 16px;