Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Formatting table to shrink or grow?
akk2
Is there any particular way to make a table shrink or grow horizontally? My table contains dynamic data so I can never know in advance the size of each label and data cells...
Ex: Table with two columns and 3 details, the format:
label1: value1-1
lable2: value1-2
lable3: value1-3
label1: value2-1
lable2: value2-2
lable3: value2-3
I'm having trouble making my table shrink or grow left and right...
Shrinking: I've put my labels and data fields Shrink attribute to true. I've done the same for the table, for the two table columns, for each cell of my table, and it never shrinks... Even if the Label and data are one character long, the table and cells always stays the same size and will be 95% empty... I've tried the label's and data as inline as opposed to block, no difference...
Growing: If I put the table very small for starters, then there doesn't seem to be any 'grow' attribute that would enlarge the cells, the labels and data depending on the size of their text or value... If a data cell is too small, then it'll grow but only downwards, but not sideways... It just doesn't seem to be able to grow horizontally...
Any idea?
oh, and I was trying to use an empty detail row as a separator, but I can't seem to reduce its height, it seems like its default height is its minimal height and it can't be reduced... Normal?
Find more posts tagged with
Comments
mwilliams
For the row width, you can determine the length of the longest value in each column and set your column width in the onCreate of the table.