Skip to content

Commit

Permalink
Fix the postion of the group object
Browse files Browse the repository at this point in the history
  • Loading branch information
g21589 committed Oct 23, 2015
1 parent 1fac76a commit ddc17cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions css/pptx2html.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ section {

section div.block {
position: absolute;
top: 15px;
top: 0px;
left: 0px;
width: 100%;
}

section div.content {
top: 100px;
display: flex;
flex-direction: column;
/*
Expand Down
2 changes: 1 addition & 1 deletion js/pptx2html.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function processNodesInSlide(index, node) {
var cy = parseInt($xfrmNode.find("ext").attr("cy")) * 96 / 914400;
var chcx = parseInt($xfrmNode.find("chExt").attr("cx")) * 96 / 914400;
var chcy = parseInt($xfrmNode.find("chExt").attr("cy")) * 96 / 914400;
context = context.replace(new RegExp('>$'), " style='top: " + y + "px; left: " + x + "px; '>");
context = context.replace(new RegExp('>$'), " style='top: " + (y - chy) + "px; left: " + (x - chx) + "px; '>");
break;
default:
}
Expand Down

0 comments on commit ddc17cc

Please sign in to comment.