Adjusted margin on static image item

This commit is contained in:
manuel 2019-11-18 17:36:16 +01:00
parent 0c30047da5
commit fe1e7da0ed

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") {