parent
2601ad4563
commit
d1dbceb407
|
@ -541,6 +541,7 @@ _xmlCharsetForCharset (NSString *charset)
|
|||
[name isEqualToString: @"onmouseout"] ||
|
||||
[name isEqualToString: @"onmouseup"] ||
|
||||
[name isEqualToString: @"onmouseover"] ||
|
||||
[name isEqualToString: @"onpointerrawupdate"] ||
|
||||
|
||||
// Keyboard Events
|
||||
[name isEqualToString: @"onkeydown"] ||
|
||||
|
|
|
@ -274,7 +274,7 @@
|
|||
md-autofocus="::!editor.isNew()"
|
||||
md-no-resize="md-no-resize"
|
||||
md-no-autogrow="md-no-autogrow"
|
||||
sg-autogrow="!isPopup"
|
||||
sg-autogrow="true"
|
||||
md-detect-hidden="md-detect-hidden" />
|
||||
</md-input-container>
|
||||
</md-dialog-content>
|
||||
|
|
|
@ -58,7 +58,14 @@
|
|||
elem.on('keyup', AutoGrowTextArea);
|
||||
elem.on('paste', AutoGrowTextArea);
|
||||
|
||||
AutoGrowTextArea();
|
||||
var deregisterWatcher = scope.$watch(function() {
|
||||
return elem[0].value;
|
||||
}, function(content) {
|
||||
if (content) {
|
||||
AutoGrowTextArea();
|
||||
deregisterWatcher(); // watch once
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue