I need that a resizable (jQuery ui) div in a TH don't go smaller that TD width or make TD overflow:hidden

StackOverflow https://stackoverflow.com/questions/18662940

문제

I have this headers on a table with a div inside:

<TH><DIV class="resize">Name of Column</DIV></TH>
<TH><DIV class="resize">Name of Column2</DIV></TH>

$(".resize").resizable();

When the user resize the div I need it to stop when the TD cannot get any smaller, or make the TD text overflowable (new word :D) under the next TD.

I tried by given all TD a class call hideOverflow and put the overflow property hidden, but the TD always stop shrinking at the biggest word it contains. So I need the div inside the TH to stop shrinking at the same width that the TD or make the TD continue shrinking with an overflow hidden.

Any thoughts appreciated!

도움이 되었습니까?

해결책

I fix this by adding DIVs to the TDs and make them "overflow:hidden" as well

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top