diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2021-11-10 12:46:06 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2021-11-10 12:46:06 +0200 |
| commit | a74ecac5d1980775f10d719fe8ae93b0695eee72 (patch) | |
| tree | 4c92ccf9f2c57a24d8b8fd24d7db02d42b6f6a61 /Software/Visual_Studio/Tango.Touch | |
| parent | 3007971a75b018daab6e4dc72bbe6ab1191cff25 (diff) | |
| download | Tango-a74ecac5d1980775f10d719fe8ae93b0695eee72.tar.gz Tango-a74ecac5d1980775f10d719fe8ae93b0695eee72.zip | |
PPC. ColorSelection tool. Added Catalogs.
Related Work Items: #4558
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs index 1993e8cae..137ef6e42 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs @@ -144,14 +144,16 @@ namespace Tango.Touch.Controls if (CurrentComboBox != null) { await Task.Delay(100); - - if (CurrentComboBox.SelectedItem != null) - { - _combobox_list.ScrollToItem(CurrentComboBox.SelectedItem); - } - else + if (CurrentComboBox != null) { - _combobox_list.ScrollViewer.ScrollToTop(); + if (CurrentComboBox.SelectedItem != null) + { + _combobox_list.ScrollToItem(CurrentComboBox.SelectedItem); + } + else + { + _combobox_list.ScrollViewer.ScrollToTop(); + } } } } |
