Ticket #5722: 5722_2.patch
File 5722_2.patch, 1.1 KB (added by , 14 years ago) |
---|
-
_source/plugins/clipboard/plugin.js
193 193 pastebin.setStyles( 194 194 { 195 195 position : 'absolute', 196 // Position the bin exactly at the position of the selected element197 // to avoid any subsequent document scroll.198 top : sel.getStartElement().getDocumentPosition().y + 'px',196 // It's definitely a better user experience if we make the paste-bin pretty unnoticed 197 // by pulling it off the screen. Hiding it to the right/left would not work for some browsers (#5722) 198 top : '-100000px', 199 199 width : '1px', 200 200 height : '1px', 201 201 overflow : 'hidden' 202 202 }); 203 203 204 // It's definitely a better user experience if we make the paste-bin pretty unnoticed205 // by pulling it off the screen.206 pastebin.setStyle( this.config.contentsLangDirection == 'ltr' ? 'left' : 'right', '-1000px' );207 208 204 var bms = sel.createBookmarks(); 209 205 210 206 // Turn off design mode temporarily before give focus to the paste bin.