要素の高さを計算する次のコードがあります。
//resize bar
var outer_container_id = "workspace_container";
var inner_container_id = "listing_data_container";
var constant_px = 45 + 26 + 25 + 60;
window.onresize = function() {
var new_height = $(outer_container_id).getHeight() - constant_px;
if($(inner_container_id) != null){
$(inner_container_id).setStyle({ 'height' : new_height + 'px'});
}
};
しかし、それはギャップを残します。パディングなどが含まれていないと思います。jQueryに相当するプロトタイプはinnerHeight
何ですか?
ありがとう