mirror of
https://github.com/safing/web
synced 2025-04-20 10:59:08 +00:00
15 lines
No EOL
402 B
JavaScript
15 lines
No EOL
402 B
JavaScript
$(".preview-panel-left").resizable({
|
|
handleSelector: ".preview-panel-splitter",
|
|
resizeHeight: false,
|
|
});
|
|
|
|
var i = 0, timeOut = 0;
|
|
|
|
$(".preview-container").hover(function () {
|
|
iframe = $(this).parent().find( ".iframe" );
|
|
timeOut = setInterval(function(){
|
|
iframe.height((iframe.contents().find('html').height()) + 'px')
|
|
}, 10);
|
|
}, function () {
|
|
clearInterval(timeOut);
|
|
}); |