Skip to content

Commit

Permalink
Merge pull request #208 from limodou/patch-1
Browse files Browse the repository at this point in the history
add maxHeight and maxWidth css properties support
  • Loading branch information
sandywalker committed Oct 18, 2016
2 parents 0e9c7b4 + e003edb commit deb6cbe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/jquery.webui-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,17 @@
}
this.$target.addClass('webui-no-padding');
}

// add maxHeight and maxWidth support by limodou@gmail.com 2016/10/1
if (this.options.maxHeight) {
$targetContent.css('maxHeight', this.options.maxHeight);
}

if (this.options.maxWidth) {
$targetContent.css('maxWidth', this.options.maxWidth);
}
// end

targetWidth = $target[0].offsetWidth;
targetHeight = $target[0].offsetHeight;

Expand Down

0 comments on commit deb6cbe

Please sign in to comment.