AND-2162: Fix flexbox implementation so works on older user agents