be more backwards-compatible with flex layout