From 508b7c456d24b8918b3e4adc08241b98ab323015 Mon Sep 17 00:00:00 2001 From: Alex Rybak Date: Fri, 10 Jul 2015 15:58:28 +0300 Subject: [PATCH 1/7] add mresizeind event that calcs height with margins and paddings --- mresize.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/mresize.js b/mresize.js index 2a232a0..3713f0c 100644 --- a/mresize.js +++ b/mresize.js @@ -67,5 +67,34 @@ THE SOFTWARE. $(this).removeData("mresize").find(".resize").remove(); } }; + + $.event.special.mresizeind={ + add:function(){ + console.log(arguments); + var el=$(this); + + if(el.data("mresizeind")) return; + if(el.css("position")==="static") el.css("position","relative"); + el + .append("