Skip to content

Commit

Permalink
add 21
Browse files Browse the repository at this point in the history
  • Loading branch information
machuanjia committed Jan 12, 2016
1 parent bff3c49 commit c208f46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-wt-editor",
"version": "1.0.20",
"version": "1.0.21",
"homepage": "https://github.com/WorktileTech/angular-wt-editor",
"authors": [
"YCTech"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-wt-editor",
"version": "1.0.20",
"version": "1.0.21",
"description": "angular-wt-editor =================",
"main": "index.js",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,11 @@ angular.module("wt-editor")

});
});
$(window).on('resize', _.throttle(function () {
$timeout(function () {
vm.editorHeight.height = ($(element).find('.wt-editor-container-code').height())+'px';
}, 50);
}, 150));
$timeout(function(){
vm.editorHeight.height = ($(element).find('.wt-editor-container-code').height())+'px';
},128);
Expand Down

0 comments on commit c208f46

Please sign in to comment.