javascript - Changing div clipping event -
i have been working on project uses byrei's dyndiv use movable/scaleable divs. seems work fine except when want minimize div, using included function, seems except fact clipping merely obscures content, , in fact remains same height. after going through source code, think i've narrowed down why.
if (evt) { var evt_src = (evt.target) ? evt.target : evt.srcelement, minmax_src = byrei_dyndiv.get.parent(evt_src,byrei_dyndiv.config.regexp.minmax,0), minmaxheight = (byrei_dyndiv.get.prefix.value(minmax_src.classname.split(' '),"minmax_height-",1)||20); evt_src = byrei_dyndiv.get.parent(evt_src,byrei_dyndiv.config.regexp.minmax,1); byrei_dyndiv._style(evt_src,'clip', (new regexp (minmaxheight + "\\w+,?\\s?auto","i").test(byrei_dyndiv._style(evt_src,'cl'))) ? 'rect(auto auto auto auto)' : 'rect(auto auto ' + (minmaxheight) +'px auto)'); } https://code.google.com/p/mvp-log-api/source/browse/trunk/dyndiv.js?r=3
from can gather, clips element, making visibility 0, div remains same actual height. how go changing when event occurs, div changes in height instead of visually "hiding" content clipped? rectify seems involved.
thank reading.
Comments
Post a Comment