Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ryan778
GitHub Repository: Ryan778/Ryan778.github.io
Path: blob/master/emojionearea/src/function/calcButtonPosition.js
575 views
1
define(
2
function() {
3
return function() {
4
var self = this,
5
offset = self.editor[0].offsetWidth - self.editor[0].clientWidth,
6
current = parseInt(self.button.css('marginRight'));
7
if (current !== offset) {
8
self.button.css({marginRight: offset});
9
if (self.floatingPicker) {
10
self.picker.css({right: parseInt(self.picker.css('right')) - current + offset});
11
}
12
}
13
}
14
});
15