Forum Discussion

Kraku's avatar
Kraku
Occasional Contributor
8 years ago

Controls highlight position is offset from real position

Like in pic, everything is OK until some point of DOM tree (iframe). After that it moves slightly coordinates of every Highlight.
TC clicks by default in top left corner so I must manually set click position which is uncomfortable. At some controls it is even not  possible to click!

 

 

(Internet Explorer 11, Zoom set to 100%)

  • Kraku's avatar
    Kraku
    8 years ago

    OK, we found it. TestComplete have a bug and incorrectly shows coordinates when CSS in Internet Explorer uses em units with padding. When we changed it to px, everything worked smoothly.

  • Kraku's avatar
    Kraku
    Occasional Contributor

    I found that when I turn off Padding CSS element in IE Developer tools DOM Explorer, for that iframe, TC begins reporting coords correctly.

     

    Any ideas what to do? Turning off padding in code is not an option.


  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    What is in that iFrame? Is that a Flash application? A PDF? It seems that there's something else in there other than just a standard web document.  I know that for Flash applications if it's not properly prepared the behavior you are reporting occurs.