# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
|
|
|
49 | 49 | |
50 | 50 | try |
51 | 51 | { |
52 | | // Chrome is problematic with moveTo/resizeTo, but it's not really needed here (#8855). |
| 52 | // Chrome 18 is problematic, but it's not really needed here (#8855). |
53 | 53 | var ua = navigator.userAgent.toLowerCase(); |
54 | | if ( ua.indexOf( ' chrome/' ) == -1 ) |
| 54 | var useResize = true; |
| 55 | if (ua.indexOf('chrome') > -1) { |
| 56 | var chromeVersion = ua.replace(/^.*chrome\/([\d]+).*$/i, '$1') |
| 57 | if(chromeVersion >= 18) { |
| 58 | useResize = false; |
| 59 | } |
| 60 | } |
| 61 | if (useResize) |
55 | 62 | { |
56 | 63 | popupWindow.moveTo( left, top ); |
57 | 64 | popupWindow.resizeTo( width, height ); |