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

View File

@ -1892,33 +1892,53 @@ function toggle_item_palette() {
$("#text-label_ifr") $("#text-label_ifr")
.contents() .contents()
.find("p") .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") $("#text-label_ifr")
.contents() .contents()
.find("p") .find("p")
.css("line-height", $(this).val()); .css("line-height", $(this).val())
.css("margin-top", "-10px");
$("#text-label_ifr") $("#text-label_ifr")
.contents() .contents()
.find("span") .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") $("#text-label_ifr")
.contents() .contents()
.find("span") .find("span")
.css("line-height", $(this).val()); .css("line-height", $(this).val())
.css("margin-top", "-10px");
}); });
$("#text-label_ifr") if (item == "static_graph") {
.contents() $("#text-label_ifr")
.find("p") .contents()
.css("line-height", $("#lineheight").val()); .find("p")
$("#text-label_ifr") .css("line-height", $("#lineheight").val())
.contents() .css("margin-top", "-10px");
.find("span") $("#text-label_ifr")
.css("line-height", $("#lineheight").val()); .contents()
$("#text-label_ifr") .find("span")
.contents() .css("line-height", $("#lineheight").val());
.find("body") $("#text-label_ifr")
.css("background", "lightgray"); .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") { if (creationItem != "simple_value") {