Kodi Community Forum
Views are overlapping each other. - 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: Views are overlapping each other. (/showthread.php?tid=99862)



Views are overlapping each other. - igotdvds - 2011-04-21

I am on the latest nightly and now have an issue.

My views when clicking on the "Video Addons" button overlap each other.

I am accessing the window with this:

Code:
<onclick>ActivateWindow(Videos,Addons,return])</onclick>

The visible conditions for the views that are on top of each other look like this:

View 500:

Code:
<visible>![Window.IsVisible(VideoLibrary) + Container.Content(TVShows) | Window.IsVisible(VideoLibrary) + Container.Content(Episodes)]</visible>
<visible>!substring(container.folderpath,plugin://plugin.video.xbmcflicks)</visible>

View 55:

Code:
<visible>SubString(Container.FolderPath,addons)</visible>

View 58:

Code:
<visible>SubString(Container.FolderPath,addons) | Window.IsVisible(addonbrowser)</visible>

View 66:

Code:
<visible>SubString(Container.FolderPath,addons)</visible>



- Hitcher - 2011-04-21

I get the same thing. I think it's the same 'all views visible' problem we had months ago but it only affects Add-ons.


- igotdvds - 2011-04-21

Hitcher Wrote:I get the same thing. I think it's the same 'all views visible' problem we had months ago but it only affects Add-ons.

I take it there was no solution? Thats sad, now all I have are the Thumbnail and List views for video addons unless you are in addonbrowser.xml. Sad


- BigNoid - 2011-04-21

igotdvds Wrote:I take it there was no solution? Thats sad, now all I have are the Thumbnail and List views for video addons unless you are in addonbrowser.xml. Sad

I think Container.Content(addons) works.


- igotdvds - 2011-04-21

Big_Noid Wrote:I think Container.Content(addons) works.

Nope.

There doesnt seem to be a way to be in "Videos>Video-Addons" and have views only appear for "Video Addons".

The result is other views underneath the ones previously set to show for only "Video Addons".


- Hitcher - 2011-04-21

Ah, your problem isn't the same as mine then. Mine does the old view problem when loading a video add-on.


- Hitcher - 2011-04-21

To fix your problem try putting each view in a group control that's only visible when that view is visible.

ie

PHP Code:
<control type="group">
    <
visible>Control.IsVisible(500)</visible>
    <
control type="list" id="500">
    ...
    </
control>
</
control



- BigNoid - 2011-04-21

All my views are like that and I don't have that problem. I was having a problem with a couple of visiblity's that relied on a substring(container.folderpath, addons), but I could fix that by replacing it with container.content(addons), which previously never worked if I recall correctly.


- igotdvds - 2011-04-21

Hitcher Wrote:To fix your problem try putting each view in a group control that's only visible when that view is visible.

ie

PHP Code:
<control type="group">
    <
visible>Control.IsVisible(500)</visible>
    <
control type="list" id="500">
    ...
    </
control>
</
control

They are....

Code:
<include name="AppView3">
        <control type="group">
            <visible>Control.IsVisible(58)</visible>
            <include>VisibleFadeEffect</include>
            <control type="image">
                <posx>0</posx>
                <posy>0</posy>
                <width>1290</width>
                <height>730</height>
                <texture>simplicity/background-solid.png</texture>
            </control>
            <control type="image">
                <posx>20</posx>
                <posy>80</posy>
                <width>1240</width>
                <height>2</height>
                <texture>simplicity/line.png</texture>
            </control>
            <include>LeftOptions</include>
            <include>RightOpenTVGuideWithScroll</include>
            <include>AddonBreadCrumbs</include>
            <control type="panel" id="58">
                <include>Zoom</include>
                <posx>135</posx>
                <posy>110</posy>
                <width>980</width>
                <height>570</height>
                <onleft>2</onleft>
                <onright>60</onright>
                <onup>58</onup>
                <ondown>58</ondown>
                <viewtype label="Apps">list</viewtype>
                <pagecontrol>60</pagecontrol>
                <scrolltime>300</scrolltime>
                <preloaditems>2</preloaditems>              
                <visible>SubString(Container.FolderPath,addons) | Window.IsVisible(addonbrowser)</visible>
                <orientation>vertical</orientation>
                    <itemlayout height="190" width="190">