0

I am using Twitter's basic widget and have run into a problem: the page does not allocate enough vertical space when initially loading the widget. This often results in the widget overlapping the content below.

Although I could add a wrapper div around it within a minimum height, I am looking to trigger a redraw using a callback. I have been able to add a callback to the code described here and in appending an empty div, it does force a redraw which corrects the display issue.

Is there any other way to trigger a redraw without modifying the dom or making a smaller change than appending a div?

Community
  • 1
  • 1
  • 2
    I think you are trying to over-engineer a fix for something that seems to be better handled in markup/CSS. – DA. Aug 18 '15 at 15:19
  • 2
    What you actually want is another layout pass. The browser won’t do that unless it’s needed. You could just fix the size of the container. – Daniel B Aug 18 '15 at 15:19
  • It seems you can fix this issue easily by proper CSS markup, look for parent elements with overflow:hidden with fixed heights or proper usage of [clearfix](https://css-tricks.com/snippets/css/clear-fix/) for floated elements. – Radomír Laučík Aug 31 '16 at 07:26

0 Answers0