附件图标遮挡问题

This commit is contained in:
qinoy 2022-09-23 11:23:44 +08:00
parent 8deeb21922
commit 9c735dd93e
2 changed files with 16 additions and 0 deletions

View File

@ -5479,6 +5479,11 @@ var Designer = {
var y = $("<div class='shape_link_point' style='cursor: pointer; position: absolute; right: -14px; bottom: -0px; width: 10px; height: 10px; color: #515151;'>" +
"<i class='awsui-iconfont' awsui-qtip='链接' style='cursor: pointer; font-size: 13px;'>&#xe7d7;</i>" +
"</div>").appendTo(o);
setTimeout(function () {
var start = Model.maxZIndex + 1;
q.props.zindex = start; //q为当前shape
Model.updateMulti([q]);
},300);
y.on("mousedown.link",
function(I) {
I.stopPropagation();
@ -5653,6 +5658,9 @@ var Designer = {
q.props.zindex = start; //q为当前shape
Model.updateMulti([q]);*/
// 重画节点 Designer.painter.renderShape(q);
var start = Model.maxZIndex + 1;
q.props.zindex = start; //q为当前shape
Model.updateMulti([q]);
y.on("mousedown.attachment",
function(I) {
I.stopPropagation();

View File

@ -5620,6 +5620,11 @@ var Designer = {
var y = $("<div class='shape_link_point' style='cursor: pointer; position: absolute; right: -14px; bottom: -0px; width: 10px; height: 10px; color: #515151;'>" +
"<i class='awsui-iconfont' awsui-qtip='链接' style='cursor: pointer; font-size: 13px;'>&#xe7d7;</i>" +
"</div>").appendTo(o);
setTimeout(function () {
var start = Model.maxZIndex + 1;
q.props.zindex = start; //q为当前shape
Model.updateMulti([q]);
},300);
y.on("mousedown.link",
function(I) {
I.stopPropagation();
@ -5794,6 +5799,9 @@ var Designer = {
q.props.zindex = start; //q为当前shape
Model.updateMulti([q]);*/
// 重画节点 Designer.painter.renderShape(q);
var start = Model.maxZIndex + 1;
q.props.zindex = start; //q为当前shape
Model.updateMulti([q]);
y.on("mousedown.attachment",
function(I) {
I.stopPropagation();