Skip to content

getComputedSize not working with 'em' in Opera #1047

abimelex opened this Issue Oct 10, 2011 · 4 comments

3 participants


getComputedSize interprets ems in Opera in the stylesheet directly as pixels without any calculating. 1em = 1px ....

tested in opera 11.51, opera mobile

mootools more:

@hummal hummal referenced this issue in StephanWagner/mBox Jan 8, 2013

Tooltips in Opera 11.51 positioning doesn't work #2

MooTools member

@hummal could you please check if this is still a issue in the nightly build which will be 1.5 in a few days?

hummal commented May 5, 2014

Prepared a jsFiddle for that issue a year ago.

MooTools member

@hummal it looks good to me :/
How does the wrong behavior look like? what should I be looking for?

Also ,can this be fixed already by #2401 as you mentioned here?

Thank you for nice input once more

hummal commented May 6, 2014

Issue #2401 is exactly what happens to me. Iam a little confused why I did reference this issue instead of the one you showed up.
My problem could be solved by adding a border:0 to the element style.
If you tested the em vs px "getComputedSize()" and it worked as expected in opera, I guess it is fixed already.

Thank you

@SergioCrisostomo SergioCrisostomo added a commit that closed this issue May 6, 2014
@SergioCrisostomo SergioCrisostomo Merge: Slider.JS - bug fix and new event "move"
 - closes #1198, closes #1047, fixes #1095 , fixes #1073, fixes #252, fixes #1068

 - More detailed explanation in the PR: #1256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.