Commit 22de798
authored
Fix UI Mistakes in Release/2.10.0 (#3161)
* Refactor onWindowSizeChanged to use event data
Updated onWindowSizeChanged to accept an event parameter and directly retrieve the new window size, because old function only got old size
* Fix control assignment in touch listener
Update touch listener control assignment to use _renderLabel if control is null.
* Update onWindowSizeChanged to accept EventCustom
* Remove useless comments and change reference into copying value
In this case, copying value might run faster than using reference because memory jump would occur when using reference.1 parent 5e37bca commit 22de798
3 files changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
| 564 | + | |
565 | 565 | | |
566 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
567 | 574 | | |
568 | 575 | | |
569 | 576 | | |
570 | 577 | | |
571 | 578 | | |
572 | 579 | | |
573 | | - | |
| 580 | + | |
574 | 581 | | |
575 | | - | |
| 582 | + | |
576 | 583 | | |
577 | 584 | | |
578 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments