Ticket #5883 (closed defect: fixed)
Opened 4 years ago
Last modified 4 years ago
Error in MythUIButtonList::RemoveItem() logic
| Reported by: | Marc Alban <marcalban@…> | Owned by: | ijr |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.22 |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Removing the top item from a mythui button list results in the list scrolling up one space to far.
When removing an item from the top of a list, the m_topPosition variable should not be incremented.
Consider the case where the top item is at index 0. If it is removed all of the items below it will be shifted up, so the new m_topPosition should still be 0, not 1.
A similar argument is true for m_selPosition when removing an item that is currently selected.
Attachments
Change History
Changed 4 years ago by Marc Alban <marcalban@…>
- Attachment removeItem.patch added
comment:1 Changed 4 years ago by stuartm
- Status changed from new to closed
- Resolution set to fixed
(In [18978]) Fix the behaviour of RemoveItem?() when selecting the new position in the list. Thanks to Marc Alban for the patch. Closes #5883

fix for scroll bug