Skip to content
Snippets Groups Projects
Commit ea517476 authored by srosse's avatar srosse
Browse files

OO-2042: adjust image size per javascript, workaround for ie

parent a572aa38
No related branches found
No related tags found
No related merge requests found
Showing with 37 additions and 9 deletions
...@@ -21,7 +21,23 @@ ...@@ -21,7 +21,23 @@
} else { } else {
jQuery("#o_print_brand").empty(); jQuery("#o_print_brand").empty();
} }
jQuery(".o_cmembers_print .o_portrait img").each(function(index, el) {
//workaround caching of images
var imgEl = jQuery(el).get(0);
if(imgEl.height > 2) {
var margin = 100 - imgEl.height;
jQuery(el).css("margin-top", (margin / 2) + "px");
}
jQuery(el).load(function() {
var imgEl = jQuery(el).get(0);
var margin = 100 - imgEl.height;
if(margin > 2) {
jQuery(el).css("margin-top", (margin / 2) + "px");
}
});
});
}) })
window.print(); //window.print();
/* ]]> */ /* ]]> */
</script> </script>
\ No newline at end of file
...@@ -183,6 +183,18 @@ ...@@ -183,6 +183,18 @@
float: right; float: right;
} }
.o_portrait {
width: 100px;
height:100px;
position:relative;
img {
border-radius: 0px;
margin: auto;
display:block;
}
}
.o_cmember { .o_cmember {
padding-left: 0px; padding-left: 0px;
padding-right: 15px; padding-right: 15px;
......
This diff is collapsed.
source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment