5

I have a strange problem. When a user clicks on an input field or a select the content of the page moves to the left. I have no idea why. This happens only in webkit browsers.

This page uses webkit-transform, maybe there's something wrong?

You can test it here http://zapmama.be/home/dev#/ontour

I hope you can help me. Thanks a lot!

Vincent

Vinzcent
  • 1,438
  • 6
  • 33
  • 59

2 Answers2

1

well you have these following errors

Unsafe JavaScript attempt to access frame with URL http://www.zapmama.be/home/dev#/ontour from frame with URL http://www.youtube.com/embed/DSopUVEhG8Y. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL http://www.zapmama.be/home/dev#/ontour from frame with URL http://www.youtube.com/embed/mMhSIqE-pBA. Domains, protocols and ports must match.

and the reason of the weired behavior is this warning message:

2event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.

you will find more about this issue's solution in here, here and here

Community
  • 1
  • 1
Shabib
  • 1,697
  • 4
  • 20
  • 39
  • 1
    I believe you have used Web Inspector/Chrome Developer Tools to inspect this. These messages have nothing to do with the broken layout (the layerX/layerY ones deal with the way Web Inspector inspects `Event` objects). – Alexander Pavlov Feb 22 '12 at 13:08
0

I have encountered this, with very similar behaviour. Even though the bug gets triggered by input focus, the problem was caused by an entirely seperate element.

So open the page where it's occurring, replicate the issue, and then open the inspector. Then go through the sibling, and other components on the page, setting them to 'display: none'. When the problem component is hidden, the issue will fix it's self. That component is the one you need to alter.

In my case I was using a 'left: 50%' as a part of centering, and changed it to a different approach.

IMHO you should avoid mixing left/top with translate3d.

JL235
  • 2,455
  • 2
  • 19
  • 14