Results 1 to 2 of 2

Thread: dom.offsetTop was changed if the dom.innerHTML is too high

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    1

    Default dom.offsetTop was changed if the dom.innerHTML is too high

    Hi all,
    my page's center part's id is "homepanel", when I set a html to it, if the content (a table) is too high, the center part will move a little to the the bottom, during debugging, I found the dom.offsetTop was changed, any idea why this happened? thx
    here is the code:

    var el = Ext.getCmp('homepanel').getUpdater().getEl();
    el.dom.innerHTML = content; // this content is a html table, if the table is short, everything is OK, if it's hight, the el.dom.offsetTop will be changed after this, el.dom.offsetTop was always 0 before. this issue only happens in IE, it won't happen in ff.

    thx

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    Is IE doing this or Ext JS?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •