GWT: how to get FlexTable width? -


hello all) task looked pretty easy - flextable's width , set width scrollpanel rid of horizontal scrollbar - until figured out method table.getelement().getclientwidth() returns 0.

maybe smth wrong way - create table, fill data call int tableheight = table.getelement().getclientwidth(); , int 0 despite table looks normal in browser , width 310 px.

thanks lot help.

if want width flextable has, can use:

table.getelement().getstyle().getwidth(); 

but return width set it. set width, can use:

table.setwidth(); 

note: getwidth() method return whatever css width table has, whether or not set programmatically.

also, getclientwidth() give width of table after attached parent widget, why why returning 0 you.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -