Ok guys.
Here's what I do:
- function myFunction($obj, fix)
- {
- var acum = 0;
- var apply = 0;
-
- $obj.height(0);
- $('#contenedora').height($(document).height() - fix);
-
- var $prev = $obj.prev('.iframe_full_title');
- var $footer = $('#divFooter');
-
- var $titulo = $('#iframe_zona_titulo');
- var $parent = $obj.parents('.iframe_full_block:eq(0)');
- var $ant = $parent.prev('.iframe_full_block');
- var $bttn = $parent.next('.button_div_bottom');
-
- acum = Number($prev.outerHeight(true));
- acum += Number($footer.outerHeight(true));
- acum += Number($titulo.outerHeight(true));
- acum += Number($ant.outerHeight(true));
- acum += Number($bttn.outerHeight(true));
-
- apply = Number(Number($('#contenedora').height()) - acum);
-
- $obj.height(apply);
- }
- $(document).ready(function(){
- [..]
- myFunction($div, 50);
- $div.css('prop', value);
- });
- $(window).resize(function(){
- myFunction($div, 50);
- }).resize();
Ok, it works fine in FF, Chrome and Safari.
The I switch into IE8 and then cames an overrun memory problem that freezes the window.
¿What I'm doing wrong?
- I didn't know it was imposible, so far I wouldn't had achieved it. -