Ticket #5722: 5722_2.patch

File 5722_2.patch, 1.1 KB (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/clipboard/plugin.js

     
    193193                pastebin.setStyles(
    194194                        {
    195195                                position : 'absolute',
    196                                 // Position the bin exactly at the position of the selected element
    197                                 // 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',
    199199                                width : '1px',
    200200                                height : '1px',
    201201                                overflow : 'hidden'
    202202                        });
    203203
    204                 // It's definitely a better user experience if we make the paste-bin pretty unnoticed
    205                 // by pulling it off the screen.
    206                 pastebin.setStyle( this.config.contentsLangDirection == 'ltr' ? 'left' : 'right', '-1000px' );
    207 
    208204                var bms = sel.createBookmarks();
    209205
    210206                // Turn off design mode temporarily before give focus to the paste bin.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy