Repository navigation
Commit 2201a99
fix(drag-drop): detect changes on custom preview/placeholder before measuring (#18698)
When a custom preview/placeholder is created, its dimensions are measured so that they can be used while sorting. The problem is that we weren't detecting changes after creation which can cause the dimensions to be incorrect, if they change based on a data binding. These changes check for changes after inserting the embedded view.
Fixes #18622.
(cherry picked from commit e87de13)1 parent 6fd3e6c commit 2201a99
2 files changed
Lines changed: 42 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3010 | 3010 | | |
3011 | 3011 | | |
3012 | 3012 | | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
3013 | 3037 | | |
3014 | 3038 | | |
3015 | 3039 | | |
| |||
5127 | 5151 | | |
5128 | 5152 | | |
5129 | 5153 | | |
5130 | | - | |
| 5154 | + | |
| 5155 | + | |
| 5156 | + | |
| 5157 | + | |
5131 | 5158 | | |
5132 | 5159 | | |
5133 | 5160 | | |
5134 | 5161 | | |
5135 | | - | |
| 5162 | + | |
| 5163 | + | |
| 5164 | + | |
| 5165 | + | |
5136 | 5166 | | |
5137 | 5167 | | |
5138 | 5168 | | |
5139 | | - | |
| 5169 | + | |
| 5170 | + | |
| 5171 | + | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
5140 | 5175 | | |
5141 | 5176 | | |
5142 | 5177 | | |
5143 | 5178 | | |
5144 | 5179 | | |
| 5180 | + | |
| 5181 | + | |
5145 | 5182 | | |
5146 | 5183 | | |
5147 | 5184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
| 887 | + | |
887 | 888 | | |
888 | 889 | | |
889 | 890 | | |
| |||
984 | 985 | | |
985 | 986 | | |
986 | 987 | | |
| 988 | + | |
987 | 989 | | |
988 | 990 | | |
989 | 991 | | |
| |||
0 commit comments