Merge branch 'ent-4652-ajustar-posicion-del-label-el-item-imagen-estatica-de-consolas-visuales' into 'develop'

Adjusted margin on static image item

See merge request artica/pandorafms!2895
This commit is contained in:
vgilc 2019-12-10 11:56:06 +01:00
commit 1e0818786b
1 changed files with 36 additions and 16 deletions

View File

@ -1892,33 +1892,53 @@ function toggle_item_palette() {
$("#text-label_ifr")
.contents()
.find("p")
.attr("data-mce-style", "line-height:" + $(this).val() + ";");
.attr("data-mce-style", "line-height:" + $(this).val() + ";")
.attr("data-mce-style", "margin-top:", "-10px;");
$("#text-label_ifr")
.contents()
.find("p")
.css("line-height", $(this).val());
.css("line-height", $(this).val())
.css("margin-top", "-10px");
$("#text-label_ifr")
.contents()
.find("span")
.attr("data-mce-style", "line-height:" + $(this).val() + ";");
.attr("data-mce-style", "line-height:" + $(this).val() + ";")
.attr("data-mce-style", "margin-top:", "-10px;");
$("#text-label_ifr")
.contents()
.find("span")
.css("line-height", $(this).val());
.css("line-height", $(this).val())
.css("margin-top", "-10px");
});
$("#text-label_ifr")
.contents()
.find("p")
.css("line-height", $("#lineheight").val());
$("#text-label_ifr")
.contents()
.find("span")
.css("line-height", $("#lineheight").val());
$("#text-label_ifr")
.contents()
.find("body")
.css("background", "lightgray");
if (item == "static_graph") {
$("#text-label_ifr")
.contents()
.find("p")
.css("line-height", $("#lineheight").val())
.css("margin-top", "-10px");
$("#text-label_ifr")
.contents()
.find("span")
.css("line-height", $("#lineheight").val());
$("#text-label_ifr")
.contents()
.find("body")
.css("background", "lightgray");
} else {
$("#text-label_ifr")
.contents()
.find("p")
.css("line-height", $("#lineheight").val());
$("#text-label_ifr")
.contents()
.find("span")
.css("line-height", $("#lineheight").val());
$("#text-label_ifr")
.contents()
.find("body")
.css("background", "lightgray");
}
}
if (creationItem != "simple_value") {