Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getOpacity return string instead of float in InternetExplorer #116

Closed
nxpthx opened this issue Apr 20, 2014 · 0 comments
Closed

getOpacity return string instead of float in InternetExplorer #116

nxpthx opened this issue Apr 20, 2014 · 0 comments

Comments

@nxpthx
Copy link

nxpthx commented Apr 20, 2014

The getOpacity function might - in some cases - return a string instead of a float (or integer).

In case a 3rd party library - f.e. script.aculo.us - uses the return value to calculate and set a new value. In case a string is returned "1" - 0.3 results in a faulty opacity value of -0.3.

By adding floatval() to the function getOpacity (around line 3149) the issue can be fixed.

  function getOpacity(element) {
    return parseFloat(Element.getStyle(element, 'opacity'));
  }

Credits go to Jigal van Hemert for fixing it for the TYPO3 Project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant