##// END OF EJS Templates
Make quote button more css-independent
neko259 -
r2132:8f7d1637 default
parent child Browse files
Show More
@@ -110,7 +110,7 b' function showQuoteButton() {'
110 var selection = window.getSelection().getRangeAt(0).getBoundingClientRect();
110 var selection = window.getSelection().getRangeAt(0).getBoundingClientRect();
111 if (selection.width > 0) {
111 if (selection.width > 0) {
112 // quoteButton.offset({ top: selection.top - selection.height, left: selection.left });
112 // quoteButton.offset({ top: selection.top - selection.height, left: selection.left });
113 $quoteButton.css({top: selection.top + $(window).scrollTop() - 30, left: selection.left});
113 $quoteButton.css({top: selection.top + $(window).scrollTop() - parseInt($quoteButton.css("height"), 10) - 3, left: selection.left});
114 $quoteButton.show();
114 $quoteButton.show();
115
115
116 var text = window.getSelection().toString();
116 var text = window.getSelection().toString();
General Comments 0
You need to be logged in to leave comments. Login now