SVGHMI: change default values for JsonTable, leading to scrollbar initialized at annoying non-zero position svghmi
authorEdouard Tisserant
Fri, 12 Mar 2021 15:12:38 +0100
branchsvghmi
changeset 3187 ba8ff21fd82b
parent 3186 1e9b9d7451cd
child 3188 c173452bf894
SVGHMI: change default values for JsonTable, leading to scrollbar initialized at annoying non-zero position
svghmi/gen_index_xhtml.xslt
svghmi/widget_jsontable.ysl2
--- a/svghmi/gen_index_xhtml.xslt	Thu Mar 11 20:46:05 2021 +0100
+++ b/svghmi/gen_index_xhtml.xslt	Fri Mar 12 15:12:38 2021 +0100
@@ -4535,7 +4535,7 @@
 </xsl:text>
     <xsl:text>    // arbitrary defaults to avoid missing entries in query
 </xsl:text>
-    <xsl:text>    cache = [0,100,50];
+    <xsl:text>    cache = [0,0,0];
 </xsl:text>
     <xsl:text>    init_common() {
 </xsl:text>
--- a/svghmi/widget_jsontable.ysl2	Thu Mar 11 20:46:05 2021 +0100
+++ b/svghmi/widget_jsontable.ysl2	Fri Mar 12 15:12:38 2021 +0100
@@ -4,7 +4,7 @@
     ||
     class JsonTableWidget extends Widget{
         // arbitrary defaults to avoid missing entries in query
-        cache = [0,100,50];
+        cache = [0,0,0];
         init_common() {
             this.spread_json_data_bound = this.spread_json_data.bind(this);
             this.handle_http_response_bound = this.handle_http_response.bind(this);