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,21 +1892,40 @@ 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");
});
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")
@ -1920,6 +1939,7 @@ function toggle_item_palette() {
.find("body")
.css("background", "lightgray");
}
}
if (creationItem != "simple_value") {
$("#data_image_check").html("Off");