From 12aeafd18efa6b7f6f875c3f0ed991f8290c560a Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 19 Oct 2020 18:13:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E7=9A=84=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/x_component_Selector/$Selector/blue_flat/css.wcss | 2 +- o2web/source/x_component_Selector/Person.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/o2web/source/x_component_Selector/$Selector/blue_flat/css.wcss b/o2web/source/x_component_Selector/$Selector/blue_flat/css.wcss index 16c7c87250..24454250c2 100644 --- a/o2web/source/x_component_Selector/$Selector/blue_flat/css.wcss +++ b/o2web/source/x_component_Selector/$Selector/blue_flat/css.wcss @@ -120,7 +120,7 @@ }, "contentNode_embedded": { "overflow": "hidden", - "padding" : "5px 0px 0px 0px" + "padding" : "4px 0px 0px 0px" }, "selectNode": { //"width": "200px", diff --git a/o2web/source/x_component_Selector/Person.js b/o2web/source/x_component_Selector/Person.js index f52a33e0de..69736ae93e 100644 --- a/o2web/source/x_component_Selector/Person.js +++ b/o2web/source/x_component_Selector/Person.js @@ -1516,6 +1516,8 @@ MWF.xApplication.Selector.Person = new Class({ }, setSize : function(){ + debugger; + if( !this.options.width && !this.options.height )return; var getOffsetX = function(node){ @@ -1611,7 +1613,7 @@ MWF.xApplication.Selector.Person = new Class({ nodeHeight = this.options.height.toInt(); } - nodeHeight = nodeHeight - getOffsetY( this.contentNode ); + nodeHeight = nodeHeight - getOffsetY( this.contentNode ) - 1; if( this.titleNode ){ nodeHeight = nodeHeight - getOffsetY( this.titleNode ) - this.titleNode.getStyle("height").toInt(); } -- GitLab