Skip to content

Commit

Permalink
Fix for newly added info to Issue #29
Browse files Browse the repository at this point in the history
  • Loading branch information
GitBrent authored and GitBrent committed Jun 25, 2017
1 parent 2ea0f3a commit d832f90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[Full Changelog](https://github.com/gitbrent/pptxgenjs/compare/v1.5.0...v1.6.0)

**Fixed Bugs:**
The width or the height must be an integer not a float [\#29](https://github.com/gitbrent/PptxGenJS/issues/29) ([badlee](https://github.com/badlee))

**Implemented Enhancements:**
- err TypeError: Cannot read property 'text' of undefined [\#106](https://github.com/gitbrent/PptxGenJS/issues/106) ([ninas880025](https://github.com/ninas880025))
- Added bowser support, gulp build of bundle [\#107](https://github.com/gitbrent/PptxGenJS/pull/107) ([santi-git](https://github.com/santi-git))
Expand Down
6 changes: 3 additions & 3 deletions dist/pptxgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if ( NODEJS ) {
var PptxGenJS = function(){
// CONSTANTS
var APP_VER = "1.6.0";
var APP_REL = "20170623";
var APP_REL = "20170625";
//
var MASTER_OBJECTS = {
'image': { name:'image' },
Expand Down Expand Up @@ -2617,8 +2617,8 @@ var PptxGenJS = function(){
this.setLayout = function setLayout(inLayout) {
// Allow custom slide size (inches) [ISSUE #29]
if ( typeof inLayout === 'object' && inLayout.width && inLayout.height ) {
LAYOUTS['LAYOUT_USER'].width = Number(inLayout.width ) * EMU;
LAYOUTS['LAYOUT_USER'].height = Number(inLayout.height) * EMU;
LAYOUTS['LAYOUT_USER'].width = Math.round(Number(inLayout.width ) * EMU);
LAYOUTS['LAYOUT_USER'].height = Math.round(Number(inLayout.height) * EMU);

gObjPptx.pptLayout = LAYOUTS['LAYOUT_USER'];
}
Expand Down

0 comments on commit d832f90

Please sign in to comment.