-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Widgets incorrectly positioned onscreen after items refresh #341
Comments
Can you shows some screenshots (or better, a video) of the issue? I'm not 100% clear on the behaviour you're describing |
My ADSL is pitiful (0.6mbit upstream) until late January when I get fibre, sent you a PM on forum |
If I'm understanding correctly, you basically have something like this occur where the the information and widget focused is the one above (or below) the one that is visible on screen: If so, that is due to one of the widgets above that position having no items when the widgets refresh. When the widget has no items, it gets hidden and Kodi shifts everything in the group up because otherwise there'd just be a massive gap (and if the reverse happens where a widget without items now does have items after a refresh, then they all get pushed down out of position in the opposite direction). The problem is that Kodi doesn't also reposition the grouplist focus to bring the current widget back on screen. If that's what you're describing, then there's not much the skin can do about this behaviour. It is down to how Kodi handles grouplists. The behaviour also occurs in Estuary if one of the widgets above the one you're on happens to be blank. |
No this is not what I mean. The only row that appears to exhibit this bug is the favourites row and it occasionally either… I could try and piece together a video but the streaming video is an unsupported one and my upload speed is 0.6mbit (until mid January when fibre arrives). |
Update: Reproduction Method.
I believe this method is consistent and without using any unsupported addons. |
This sounds like the behaviour I described in my previous comment. |
“ If I'm understanding correctly, you basically have something like this occur where the the information and widget focused is the one above (or below) the one that is visible on screen:” it’s the reverse, the focused item is correct and the displayed item is the row below (always below for me, never above). “ If so, that is due to one of the widgets above that position having no items when the widgets refresh.” In the case of favourites this is possible as the item below is the unsupported addons which will generally take time to load. With smart playlists the item below is tv shows which are local and always instantly load for me. in short it’s is similar to how you describe but the reverse and the row below does have items. The playlists version is impossible to test in Estuary as playlists (afaik) cannot be made a menu item, with favourites in estuary the item below is addons (again can’t make the unsupported addon a menu item). |
Thanks for the info and update @jurialmunkey. Seems like that could be the issue. It's only working fine for the first widget row in the first category on the home screen. Probably because there isn't any row above. However, anywhere else the rows above all still have items, but they are being refreshed and the position of the items change. The skin then moves two rows down below to the widget row including the currently selected item. So I guess there is no workaround for this? I will try again with static widget rows (alphabetically ordered) if the issue persists. Thanks again |
The only real "workaround" is to check that you don't have any widgets that end up blank. On my main loungeroom setup I never encounter this issue because all of my widgets always have content -- but if I add in a "blank" playlist as a widget with no items then I can make it happen reliably. In my setup, for things like "in-progress movies" that might sometimes end up empty, I use a Skin Variables filter to fallback to a different list (for progress I like falling back to my trakt recommendations list) if the main list is empty. You can do this with SkinVariables like so:
|
Can this be disabled, or at least skip to next Widget on Home when empty if the first widget is empty? Reason: I have a Continue Watching widget as my first widget on Home. Previous version would automatically jump to the next widget at startup when this widget was empty, which it is 99% of the time. Here is a screen shot. Previous version it would land on Next Episode if Continue watching was empty and nothing would be displayed for the empty widget. Preference would be to hide it because I don't need to see Continue Watching is there isn't anything to continue watching. |
Creating a backup widget doesn't really solve the issue either as I want it to land on Next Episode if continue watching is blank. Displaying an empty place holder seems unnecessary and a waste of space. |
@FrostByteLXV - Map this hidden setting somewhere (like in your options tray) and click on it once. Then reload the skin for it to take effect. This will disable the 'No Results' image. Clicking on that setting again (followed by a skin reload) will enable it. |
@OfficerKD637 Excellent. Thank you very much. |
It is necessary to prevent this bug in this issue thread. |
Understand. Never seen this bug myself with any of my favorites, etc and it wouldn't really bother me much if it didn't affect the landing of my first widget on startup. Imagine that image being the first thing you see every time. I can just make a small change to Includes_Widgets.xml (or make my own setting) though thanks to the pointer by OfficerKD637. |
It's not really anything to do with favourites, that's a red herring. The issue is fairly easy to reproduce if you go to a widget further down that is a tvshow, open the tvshow (so that you go to different window), play something, stop playback, then press back to return home. The widgets will end up in the wrong position because the top widget will briefly be visible (to reload) and then hide (due to no items), which causes Kodi to shift everything up and the current widget ends up offscreen.
Yeah I completely understand and it definitely wasn't my first choice either to address the issue either. I'd much rather hide the widgets as I was before but it was sort of forced by skinning engine limitations. The other side is that I also think quite a few users might not even realise that their setups contain empty widgets (due to being hidden) and that's a performance drain since Kodi still needs evaluate and reload all those empty widgets after each refresh. So at least with a conspicuous "empty widget" placeholder it might force those users to fix their setups to remove the dead weight.
No need to edit anything. The setting is provided for exactly this purpose. I just hadn't added a toggle in the skin settings to expose it. |
Okay, I think I've seen that with music albums then. Clicked back after playing and I'm brought back in the section below (after shift). Guess it never really bothered me enough to mention it before (though I probably should have). I can definitely see the empty widget being worked on during startup. Sits there for a second or two loading with a little spinner. I was thinking you were going to add that eventually and just hadn't gotten to it :) Looked and couldn't find anywhere you were actually setting Widgets.DisableNoResultsItem. For now, I just removed the "!" from the bottom of Includes_Widgets.xml. Anyhow, thanks as always for taking the time to explain things. I've learned a lot as usual. |
Thanks for the explanation and info, very much appreciated! I even forgot that I had "in-progress movies and episodes" in my widget list because I've almost never any content in that list. I also didn't know that these two widgets could cause this issue for the entire setup. I've disabled them and it's working perfectly fine now! I will try to set up a skin variables filter later. Thanks again |
@jurialmunkey -is it possible to have an option for the skin's initial focus be on the first non-empty widget on startup? Instead of the first widget with this new option enabled. For instance, my first widget is one which displays movie/shows that I stopped playing and need to continue watching. This is empty 99% of the time. IF I have the setting to display the empty widget icon, then the skin would land on the next widget which is Next Up episode on startup. IF Next Up is blank then the initial focus would be whatever widget comes next You could then scroll up and see the empty widget icon if you want, but it wouldn't be the first thing you see on start. Reason: saves time not having to scroll down to the next widget with data, plus it is better looking at start not having the initial focus being the empty widget icon. I do not want to add a backup widget because to me that's just adding something I never really wanted bad enough before which just delays me getting to my next priority widget. Add a first non-empty widget option here: |
@FrostByteLXV it's a nice idea but unfortunately I don't think it'd be possible. The reason is down to a skinning limitation I often run into where the skin can only "know" how many items will be in the widget after the widget loads but theres no way to trigger an action at that point - ie there's no trigger for onwidgetload or similar which is what would be needed to check. Btw the option to hide these place holders is in the most recent version under the viewtypes skin settings section. |
Ahh...np. |
Skin section
Widgets
Current Behavior
I have several favourites that are links to a streaming addon, each for a separate tv show.
I am using the ‘Detailed’ mode for my 1101 customised Home, so just widgets in row per ‘category’. My Back Button is set to ‘previous’
Favourites are in the hub config as Favourites://
When exiting one show I will occasionally (50:50 estimated chance) get false gfx and title but correct ‘cursor’ position. This seems to usually be the third icon from the widget row below, which is the streaming addon (but not related to favourites, tv shows etc)
Moving the ‘cursor’ with my remote changes the title or row correctly but the incorrect image seems to persist in favourites widget (it changes correctly if I change widget row) until I click OK on remote.
The ‘feel’ of the bug is like it needs to (but isn’t) flushing the old data and reloading the new data for the previous back button action.
EDIT: by @jurialmunkey See below for related issue #519 originally posted by @Beats24-7
Skin section
Widgets
Current Behavior
When playback of an item is complete and you return to the home screen, the skin loses focus of the correct / current widget row.
Focus always moves downards two rows somehow. The fanart and info section is still showing the correct item.
Expected Behavior
The skin should focus on the current item in a widget, or if it's removed (when watched), on the nearest / next item.
Steps To Reproduce
I am using the classic main menu + detailed mode (widgets+information). I have tested several different view types including landscape (+detailed or no info), landscape(s), board, square, etc...
Choose an item in a widget, finish playback and return to home screen.
Screenshots and Additional Info
No response
Checklist
The text was updated successfully, but these errors were encountered: