Просмотр исходного кода

修复提交选人框可能看不到已选框的问题

unknown 5 лет назад
Родитель
Сommit
4d25cd0217
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      o2web/source/x_component_Selector/Person.js

+ 1 - 1
o2web/source/x_component_Selector/Person.js

@@ -1580,7 +1580,7 @@ MWF.xApplication.Selector.Person = new Class({
             //if (this.options.count.toInt() !== 1){
             var width = nodeWidth - getOffsetX(this.selectNode) - getOffsetX(this.selectedContainerNode);
 
-            var halfWidth = this.options.noSelectedContainer ? width : Math.floor(width / 2);
+            var halfWidth = this.options.noSelectedContainer ? width : ( Math.floor(width / 2) - 2);
 
             this.selectNode.setStyle("width", halfWidth);
             //this.searchInput.setStyle("width", halfWidth - 6);