Ajax Refreshing and Element Style Changing

Ajax Refreshing and Element Style Changing

  

Hello guys,


I'm having a problem with a combination of ajax refresh on some nested webBlocks inside Accordion items. 


The structure of my web page where the bug is happening is simple:

<Acordion item>

Search Block

<Accordion>

<Table Reccords_Out>

<Accordion Item>

<Table Reccords_In>

</Table Reccords_In>

<Accordion Item>

</Table Reccords_Out>

</Accordion>

</Acordion item>


The problem is that the style of the Div in the page that contains the Table_Records_In is changed ( height: auto TO height: 0) after a page navigation. 

This only happens if in the first place I do a Ajax refresh on the  TableRecords_Out tafter executing a Search  and the Accordion Item where im doing navigation is the last of the page. 


Any idea where / how to solve this? 


This explanation may be a little confusing but actually can't give images of what's happening.
Can answer any doubts.

Thanks,
Filipe Cardoso

Hi,


Not sure if i can help you with that without an actual (dummy) example where it's being reproduced.

But did you try refreshing the div instead of the tablerecords itself?


J. wrote:

Hi,


Not sure if i can help you with that without an actual (dummy) example where it's being reproduced.

But did you try refreshing the div instead of the tablerecords itself?



Hey J,


Yes I have tried already some possible solutions. 


The problem is that when the div is re-rendered something is changing it's style- Height from auto to 0.
But this only happens to the last item of the accordion ( contains a table reccords).


Is it possible to force the height style to be permantly auto?