동적으로 생성하면서 높이 값이 필요할 때 유용하다. 약간 꼼수인 것 같지만.....
function textComponentHeight (component) {
document.body.appendChild(component);
var textHeight = component.offsetHeight;
document.body.removeChild(component);
return textHeight;
}
'Development > Web & Server' 카테고리의 다른 글
[Play Framework] 2.3버전 설치 및 프로젝트 생성 (0) | 2015.04.16 |
---|---|
[Spring Framework] Injection of autowired dependencies failed (0) | 2014.12.10 |
Tomcat7 에서 Memory Setting 하기 (0) | 2014.10.01 |
[Amazon] EC2 Load Balancer 적용하기~! (0) | 2014.09.06 |
Google Custom Search 사용하기 (0) | 2014.09.04 |