2011-11-11 3 views
0

インラインブロック要素に幅を設定する私は(インラインブロックとのdivの)タイルコンテナの数を有するテーブルクローム:プログラムで

[] [] []

私は幅を変更表しますこれらのコンテナの1つであるChromeは、それらを再レンダリングすることに失敗しています。容器を再レンダリングするためにクロムを強制する方法は

[] []

// Updates each container with the correct HTML and the appropriate width values 
function UpdateContainer(crosstab) 
{ 
    var container = $(".GeneratedTableContainer").filter("[index='" + crosstab.Index + "']").find(".GeneratedTableContent"); 
    container.html(crosstab.Html); 

    // Capture the width of the table and update the .GeneratedTableContainer and .GeneratedTableWrapper to prevent overflow. 
    var width = container.find(".Crosstab").css("width"); 
    container.closest(".GeneratedTableContainer").css("width", width); 
    container.closest(".GeneratedTableWrapper").css("width", width); 
} 



div.GeneratedTableWrapper 
{ 

display: inline-block; 
min-width: 500px; 
width: auto; 
margin-left: 5px; 
} 

div.GeneratedTableContainer 
{ 
margin-top: 5px; 
min-width: 500px; 
width: auto; 
border: 1px solid #dddddd; 
position: absolute; 
top:0px; 
bottom:5px; 
} 

がある(これはクロムで起こりますか)? Chromeは重複を防ぐ従って、これらの容器を再レンダリングすることを知っている容器

$(".GeneratedTableWrapper").AddClass("Resized") 

にクラスを追加することにより

答えて