1# Check that a box that is expanded does so correctly
2# Use a box at the top level.
3#
4# This is a pretty common paradigm; tiles will use boxes at the top level to
5# allow the positioning of multiple elements without them affecting the
6# placement of each other. If this is done incorrectly though, it can lead to
7# the inner box not expanding properly.
8box {
9  horizontal_alignment {
10    value: HORIZONTAL_ALIGN_CENTER
11  }
12  vertical_alignment {
13    value: VERTICAL_ALIGN_CENTER
14  }
15  width {
16    expanded_dimension {}
17  }
18  height {
19    expanded_dimension {}
20  }
21  contents {
22    box {
23      vertical_alignment {
24        value: VERTICAL_ALIGN_TOP
25      }
26      modifiers {
27        background {
28          color {
29            argb: 0xFFFF0000
30          }
31        }
32      }
33      height {
34        expanded_dimension {}
35      }
36      contents {
37        text {
38          text {
39            value: "Hello World"
40          }
41        }
42      }
43    }
44  }
45}
46