Skip to content

Commit

Permalink
bugfix for 图片缩放支持
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed Apr 20, 2019
1 parent 9e9c0ef commit 9411cdf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions resources/views/components/markdown-show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,11 @@
$(this).parents('.wz-wrap-table').find('table').css('word-break', 'normal');
}
});
}, 0);
window.setTimeout(function () {
// 图片缩放支持
$.wz.imageResize('#markdown-body');
// 延迟3s后再执行一次,避免因为页面尚未渲染完成造成图片缩放无效
window.setTimeout(function() {
$.wz.imageResize('#markdown-body');
}, 3000);
}, 0);
});
</script>
Expand Down

0 comments on commit 9411cdf

Please sign in to comment.