Skip to content

Commit

Permalink
Merge pull request #9 from cottton/patch-1
Browse files Browse the repository at this point in the history
Fixing Undefined index: height in 437
  • Loading branch information
mdeboer authored Sep 6, 2017
2 parents f52426b + ba80458 commit 2adb801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions laff-pack.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function __construct($boxes = null, $container = null)
$this->container_dimensions['width'] = $container['width'];

// Note: do NOT set height, it will be calculated on-the-go
$this->container_dimensions['height'] = 0;
}
}
}
Expand Down Expand Up @@ -97,6 +98,7 @@ function pack($boxes = null, $container = null) {
$this->container_dimensions['width'] = $container['width'];

// Note: do NOT set height, it will be calculated on-the-go
$this->container_dimensions['height'] = 0;
}
}

Expand Down

0 comments on commit 2adb801

Please sign in to comment.