Opera-Translate icon indicating copy to clipboard operation
Opera-Translate copied to clipboard

Scroll Bars on German Ebay

Open thegoschman opened this issue 11 years ago • 1 comments

Some web pages have the scroll go stupid and fill up the entire page top to bottom. You can't scroll even though there's more to display.

If I disable the extension then the page works fine.The attached pics are of the same page. Pic 1 has the translate OFF, pic 2 has translate ON. Notice that the scroll bar fills up the page even though there's more to scroll through.

trans1 trans2

thegoschman avatar Nov 15 '14 06:11 thegoschman

Thanks for reporting this issue. You can observe the same thing happening with the following instructions:

  1. Disable the Opera Translate Extension in the Extensions Manager page.
  2. Open a German eBay product listings page (as you showed above).
  3. Open the 'Web Inspector' in Opera, go to 'Console', paste the following code and press Enter:
// Inject Google Translate callback script to web page
var extensionScript = document.createElement('script');
extensionScript.type = "text/javascript";
extensionScript.textContent =
["function googleTranslateElementInit() {",
 '  var elem = new google.translate.TranslateElement({',
 '    pageLanguage: "de"',
 '  });',
 '  elem.showBanner();',
 '}'
].join('\n');
document.querySelector('BODY').appendChild(extensionScript);

// Inject Google Translate library script to web page
var translateElementScript = document.createElement('script');
translateElementScript.type = "text/javascript"
translateElementScript.src = '//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&hl=en';
document.querySelector('BODY').appendChild(translateElementScript);

The same problem that you have reported can be observed.

Therefore the problem relates to the Google Translate JavaScript Widget and not the Opera Translate Extension itself. I was unable to find a way to report bugs on the Google Translate JavaScript Widget. If you know how we can do this then we can ask Google to look in to the issue.

richtr avatar Dec 17 '14 14:12 richtr