From 22bffa9ba8df01aaa31b2f12538cae03226e858b Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Mon, 15 Sep 2014 14:05:34 +0100 Subject: [PATCH] Add update functionality to options-default example. It's useful to test the plugin with the update function. --- examples/options-default.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/options-default.html b/examples/options-default.html index ed785b6..9a26fc2 100644 --- a/examples/options-default.html +++ b/examples/options-default.html @@ -16,6 +16,11 @@ "use strict"; $('#Default').perfectScrollbar(); }); + var updateSize = function () { + var width = parseInt($('#width').val(), 10); + var height = parseInt($('#height').val(), 10); + $('#Default').width(width).height(height).perfectScrollbar('update'); + }; @@ -23,6 +28,11 @@
+

+ Width + Height + +