Problem with list scrolling back to the top by itself (solved) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Problem with list scrolling back to the top by itself (solved) (/showthread.php?tid=193369) |
Problem with list scrolling back to the top by itself (solved) - Alex... - 2014-04-27 Hello there! I'm currently working on a skin and the forum has been a great help, as I managed to repair many things using the information found here. This time though, I couldn't find a solution to my problem no matter what I tried, so I'm hoping someone with more experience and knowledge can help me. I want to create a grouplist in SkinSettings.xml which holds custom settings, each with a set of subordinate settings only visible if the main setting is enabled. I'm posting two screenshots; maybe it makes more sense: The hidden settings show up as expected when the visibility condition is met. My only problem is that when I scroll down the expanded list (with some of the hidden settings now shown) and I focus on a "subordinate" button, the list scrolls back to the top. This happens only when I focus on a button. If I scroll down the list carefully and focus on the thumbnail (in the second screenshot), the list doesn't scroll back up. At first, the structure of my settings list was: Code: Grouplist Thinking that there might be a conflict between the <pagecontrol> tags of the main list and the subordinate lists, I got rid of the subordinate lists and kept only the settings. So I changed the structure to: Code: Grouplist Here's the code taken from SkinSettings.xml: PHP Code: <control type="group" id="9100" description="Container for Settings"> The <include>HomeMenuSettings</include> and <include>BackgroundsSettings</include>: (It's quite long, so I'm posting only a part of it, but the rest of it is similar) PHP Code: <include name="HomeMenuSettings"> PHP Code: <include name="BackgroundsSettings"> Am I doing something wrong or what I want to do is impossible? I have an alternative method to show those subordinate settings and I'll use that method if I can't fix this one, but I wanted to know if this should work as intended, because I really like the idea. I'm sorry for the excessively long post... Thank you in advance! Alex RE: Problem with list scrolling back to the top by itself - MassIV - 2014-04-27 Try numbering all your buttons, including sub buttons, just like any normal button. So "Show TV shows" would be id="106". RE: Problem with list scrolling back to the top by itself - Alex... - 2014-04-28 I gave ids to all the buttons in the list as you suggested and now everything works fine without scrolling back to the top. Thank you very much! |