diff --git a/dist/entry.css b/dist/entry.css index 4342dc65fc..e232e2c627 100644 --- a/dist/entry.css +++ b/dist/entry.css @@ -601,10 +601,12 @@ svg .svgBlockGroup text { color: #000; z-index: 1001; overflow: auto; + left: 0; + top: 0; } .entry-widget-dropdown .rect { height: 20px; - padding: 3px 19px 3px 6px; + padding: 3px 17px 3px 6px; width: 100%; } .entry-widget-dropdown .rect .left { diff --git a/dist/entry.js b/dist/entry.js index 5a8fdd7159..1db2a8a3b0 100644 --- a/dist/entry.js +++ b/dist/entry.js @@ -16855,7 +16855,7 @@ Entry.Utils.inherit(Entry.Field, Entry.FieldDropdown); } else { a.x += this.box.width / 2 - this.optionGroup.width() / 2; } - this.optionGroup.css({left:a.x, top:a.y}); + this.optionGroup.css({left:a.x, top:a.y, width:this.optionGroup.width() + 3}); }; b.applyValue = function(a) { this.value != a && this.setValue(a); diff --git a/dist/entry.min.js b/dist/entry.min.js index 309455fff8..b6763970c3 100644 --- a/dist/entry.min.js +++ b/dist/entry.min.js @@ -1946,8 +1946,8 @@ Entry.FieldColor.getWidgetColorList=function(){return["#FFFFFF #CCCCCC #C0C0C0 # 16;this._noArrow&&(b-=12);var d=this._CONTENT_HEIGHT;this._header=this.svgGroup.elem("rect",{width:b,height:d,y:-d/2,rx:this._ROUND,ry:this._ROUND,fill:"#fff","fill-opacity":.4});this.svgGroup.appendChild(this.textElement);this._noArrow||(a=this._arrowColor||a._schema.color,this._arrow=this.svgGroup.elem("polygon",{points:"0,-2.1 6.4,-2.1 3.2,2.1",fill:a,stroke:a,transform:"translate("+(b-11)+",0)"}));this._bindRenderOptions();this.box.set({x:0,y:0,width:b,height:d})};b.resize=function(){var a=this.textElement.getComputedTextLength()+ 18;this._noArrow?a-=14:this._arrow.attr({transform:"translate("+(a-11)+",0)"});this._header.attr({width:a});this.box.set({width:a});this._block.view.alignContent()};b.renderOptions=function(){var a=this;this._attachDisposeEvent();this.optionGroup=Entry.Dom("ul",{class:"entry-widget-dropdown",parent:$("body")});this.optionGroup.bind("mousedown touchstart",function(a){a.stopPropagation()});for(var b=this._contents.options,b=this._contents.options,d=0,e=b.length;d