diff --git a/插件库/Lskj.Control/Model/MyControl.cs b/插件库/Lskj.Control/Model/MyControl.cs index cd9b2f0..2f1d84d 100644 --- a/插件库/Lskj.Control/Model/MyControl.cs +++ b/插件库/Lskj.Control/Model/MyControl.cs @@ -512,6 +512,10 @@ namespace Lskj.Control.Model x = model.Location.X; width = model.Location.X + model.Size.Width; } + if (model.Location.X == 0 && model.Location.Y == 0 && ((item["controlHeight"] + "").Equals("0") || string.IsNullOrEmpty(item["controlHeight"] + ""))) + { + control.Visible = false; + } // 树结构类型直接隐藏,不根据配置显示. if (model.FieldType == ControlType.LabTreeType) control.Visible = false;