aboutsummaryrefslogtreecommitdiff
path: root/addons/skin.estuary
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2020-10-20 21:05:54 +0200
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2020-10-24 12:59:54 +0200
commitdc4fc69de50466ab1cb7c55bef3bd77fc065d177 (patch)
tree7758295863be569f7b9d48bd004819e2faf876b6 /addons/skin.estuary
parentb2ed5a1445587c8fd7cba56249733353ff8acbe9 (diff)
[Estuary] Home screen widgets: Fix busy spinner and content panel displayed at same time if panel has exactly one item.
Diffstat (limited to 'addons/skin.estuary')
-rw-r--r--addons/skin.estuary/xml/Includes_Home.xml8
1 files changed, 3 insertions, 5 deletions
diff --git a/addons/skin.estuary/xml/Includes_Home.xml b/addons/skin.estuary/xml/Includes_Home.xml
index 8abe7844a2..4164bcf100 100644
--- a/addons/skin.estuary/xml/Includes_Home.xml
+++ b/addons/skin.estuary/xml/Includes_Home.xml
@@ -21,7 +21,7 @@
<label>$PARAM[label]</label>
<shadowcolor>text_shadow</shadowcolor>
<visible>$PARAM[visible]</visible>
- <visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,$PARAM[item_treshold]) | Container($PARAM[list_id]).IsUpdating</visible>
+ <visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,$PARAM[item_treshold]) | [Container($PARAM[list_id]).IsUpdating + Integer.IsEqual(Container($PARAM[list_id]).NumItems,0)]</visible>
</control>
</definition>
</include>
@@ -453,7 +453,6 @@
<include content="BusyListSpinner">
<param name="list_id" value="$PARAM[list_id]"/>
<param name="posy" value="200"/>
- <param name="item_treshold" value="$PARAM[item_treshold]"/>
</include>
<control type="panel" id="$PARAM[list_id]">
<left>0</left>
@@ -463,7 +462,7 @@
<include content="WidgetListCommon">
<param name="list_id" value="$PARAM[list_id]"/>
</include>
- <visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,$PARAM[item_treshold]) | Container($PARAM[list_id]).IsUpdating</visible>
+ <visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,$PARAM[item_treshold]) | [Container($PARAM[list_id]).IsUpdating + Integer.IsEqual(Container($PARAM[list_id]).NumItems,0)]</visible>
<itemlayout width="310" height="500">
<control type="group">
<left>70</left>
@@ -944,12 +943,11 @@
<include name="BusyListSpinner">
<param name="posy">160</param>
<param name="visible">true</param>
- <param name="item_treshold">0</param>
<definition>
<control type="group" id="$PARAM[list_id]599">
<height>160</height>
<left>180</left>
- <visible>Container($PARAM[list_id]).IsUpdating + !Integer.IsGreater(Container($PARAM[list_id]).NumItems,$PARAM[item_treshold])</visible>
+ <visible>Container($PARAM[list_id]).IsUpdating + !Integer.IsGreater(Container($PARAM[list_id]).NumItems,0)</visible>
<visible>$PARAM[visible]</visible>
<control type="image">
<top>$PARAM[posy]</top>