From 21b4eb156fa9a5dd85668c0ca019a1cf7882e6e0 Mon Sep 17 00:00:00 2001
From: Christophe Seguinot <christophe.seguinot@univ-lille.fr>
Date: Mon, 1 Mar 2021 17:38:56 +0100
Subject: grc: fix widget whitout GUI_hint may  superpose to other

Signed-off-by: Christophe Seguinot <christophe.seguinot@univ-lille.fr>
---
 grc/core/params/param.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'grc/core/params/param.py')

diff --git a/grc/core/params/param.py b/grc/core/params/param.py
index f753683090..de370c9bff 100644
--- a/grc/core/params/param.py
+++ b/grc/core/params/param.py
@@ -392,7 +392,10 @@ class Param(Element):
             else:
                 layout = '{tab}_grid_layout_{index}'.format(tab=tab, index=index)
         else:
-            layout = 'top_grid_layout'
+            if not pos:
+                layout = 'top_layout'
+            else:
+                layout = 'top_grid_layout'
 
         widget = '%s'  # to be fill-out in the mail template
 
-- 
cgit v1.2.3