blob: d302d8cc9bc11885c4f9fac5a7e3dca3a6c375a1 [file] [log] [blame]
Test ListControl rendering for various height items case.
Adding 0, 1, 2
Creating element for 0
Creating element for 1
Creating element for 2
----list[length=3][height=73]----
[0] top
*[0] 0
*[7] 1
*[15] 2
*[24] bottom
offsets: 0 7 15 24
Scrolling to 0
----list[length=3][height=73]----
[0] top
*[0] 0
*[7] 1
*[15] 2
*[24] bottom
offsets: 0 7 15 24
Scrolling to 2
----list[length=3][height=73]----
[0] top
*[0] 0
*[7] 1
*[15] 2
*[24] bottom
offsets: 0 7 15 24
Adding 3-20
Creating element for 3
Creating element for 4
Creating element for 5
Creating element for 6
Creating element for 7
Creating element for 8
Creating element for 9
Creating element for 10
Creating element for 11
Creating element for 12
Creating element for 13
Creating element for 14
----list[length=20][height=73]----
[0] top
*[0] 0
*[7] 1
*[15] 2
*[24] 3
*[34] 4
*[45] 5
*[57] 6
+[70] 7
[84] 8
[99] 9
[115] 10
[122] 11
[130] 12
[139] 13
[149] 14
[160] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 185 199 214 230
Scrolling to 11
Creating element for 15
Creating element for 16
Creating element for 17
Creating element for 18
Creating element for 19
----list[length=20][height=73]----
[-57] top
[-57] 0
[-50] 1
[-42] 2
[-33] 3
[-23] 4
[-12] 5
*[0] 6
*[13] 7
*[27] 8
*[42] 9
*[58] 10
*[65] 11
[73] 12
[82] 13
[92] 14
[103] 15
[115] 16
[128] 17
[142] 18
[157] 19
[173] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 185 199 214 230
Scrolling to 19
----list[length=20][height=73]----
[-157] top
[-73] 8
[-58] 9
[-42] 10
[-35] 11
[-27] 12
[-18] 13
+[-8] 14
*[3] 15
*[15] 16
*[28] 17
*[42] 18
*[57] 19
[73] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 185 199 214 230
Scrolling to 16 (center)
----list[length=20][height=73]----
[-142] top
[-72] 7
[-58] 8
[-43] 9
[-27] 10
[-20] 11
[-12] 12
+[-3] 13
*[7] 14
*[18] 15
*[30] 16
*[43] 17
*[57] 18
+[72] 19
[88] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 185 199 214 230
Scrolling to 3
----list[length=20][height=73]----
[-24] top
[-24] 0
[-17] 1
[-9] 2
*[0] 3
*[10] 4
*[21] 5
*[33] 6
*[46] 7
+[60] 8
[75] 9
[91] 10
[98] 11
[106] 12
[115] 13
[125] 14
[136] 15
[148] 16
[161] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 185 199 214 230
Replacing 0, 1 with 25-36
Creating element for 25
Creating element for 26
Creating element for 27
Creating element for 28
Creating element for 29
Creating element for 30
Creating element for 31
Creating element for 32
Creating element for 33
Creating element for 34
Creating element for 35
Creating element for 36
----list[length=30][height=73]----
[-24] top
[-24] 25
+[-12] 26
*[1] 27
*[15] 28
*[30] 29
*[46] 30
*[53] 31
*[61] 32
+[70] 33
[80] 34
[91] 35
[103] 36
[116] 2
[125] 3
[135] 4
[146] 5
[158] bottom
offsets: 0 12 25 39 54 70 77 85 94 104 115 127 140 149 159 170 182 195 209 224 240 247 255 264 274 285 297 310 324 339 355 0 0 0 0 0 0 0 0 0 0 0
Scrolling to 18
----list[length=30][height=73]----
[-266] top
[-71] 7
[-57] 8
[-42] 9
[-26] 10
[-19] 11
[-11] 12
+[-2] 13
*[8] 14
*[19] 15
*[31] 16
*[44] 17
*[58] 18
[73] 19
[89] bottom
offsets: 0 12 25 39 54 70 77 85 94 104 115 127 140 149 159 170 182 195 209 224 240 247 255 264 274 285 297 310 324 339 355 0 0 0 0 0 0 0 0 0 0 0
Replacing 25-36 with 0-1
----list[length=20][height=73]----
[-141] top
[-71] 7
[-57] 8
[-42] 9
[-26] 10
[-19] 11
[-11] 12
+[-2] 13
*[8] 14
*[19] 15
*[31] 16
*[44] 17
*[58] 18
[73] 19
[89] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 185 199 214 230
Replacing 16-18 with 45
Creating element for 45
----list[length=18][height=73]----
[-127] top
[-70] 6
[-57] 7
[-43] 8
[-28] 9
[-12] 10
+[-5] 11
*[3] 12
*[12] 13
*[22] 14
*[33] 15
*[45] 45
*[57] 19
[73] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 184 200 214 230
Scrolling to 4
Creating element for 1
Creating element for 0
----list[length=18][height=73]----
[-34] top
[-34] 0
[-27] 1
[-19] 2
[-10] 3
*[0] 4
*[11] 5
*[23] 6
*[36] 7
*[50] 8
+[65] 9
[81] 10
[88] 11
[96] 12
[105] 13
[115] 14
[126] 15
[138] 45
[150] 19
[166] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 184 200 214 230
Replacing 45 with 16-18
Creating element for 16
Creating element for 17
----list[length=20][height=73]----
[-34] top
[-34] 0
[-27] 1
[-19] 2
[-10] 3
*[0] 4
*[11] 5
*[23] 6
*[36] 7
*[50] 8
+[65] 9
[81] 10
[88] 11
[96] 12
[105] 13
[115] 14
[126] 15
[138] 16
[151] 17
[165] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 185 199 214 230
Resizing
Creating element for 18
----list[length=20][height=190]----
[-34] top
[-34] 0
[-27] 1
[-19] 2
[-10] 3
*[0] 4
*[11] 5
*[23] 6
*[36] 7
*[50] 8
*[65] 9
*[81] 10
*[88] 11
*[96] 12
*[105] 13
*[115] 14
*[126] 15
*[138] 16
*[151] 17
*[165] 18
+[180] 19
[196] bottom
offsets: 0 7 15 24 34 45 57 70 84 99 115 122 130 139 149 160 172 185 199 214 230