diff --git a/jquery.flot.js b/jquery.flot.js index 96800e2..fc83b2e 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -775,9 +775,9 @@ Licensed under the MIT license. }; }; plot.shutdown = shutdown; - plot.resize = function () { - var width = placeholder.width(), - height = placeholder.height(); + plot.resize = function (width, height) { + width = width || placeholder.width(); + height = height || placeholder.height(); surface.resize(width, height); overlay.resize(width, height); };