Skip to content

Commit

Permalink
fixed bug where images would overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SeverinDK committed Oct 24, 2016
1 parent 180fd33 commit 74fecfc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplefader",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple fader for fading between any amount of images with minimal markup generated.",
"main": "lib/simplefader.js",
"repository": {
Expand Down
5 changes: 4 additions & 1 deletion lib/simplefader.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ SimpleFader.prototype.initialize = function () {
$(this.elements.container).append(this.elements.frontImage);

$("#" + this.elements.container.id + " img").css("position", "absolute");
$(this.elements.container).css("overflow", "hidden");
$(this.elements.container).css({
"overflow": "hidden",
"position": "relative"
});

this.elements.nextImage = this.elements.frontImage;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplefader",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple fader for fading between any amount of images with minimal markup generated.",
"main": "lib/simplefader.js",
"repository": {
Expand Down

0 comments on commit 74fecfc

Please sign in to comment.