T
Terren
I have a popup window that is used to display text from a database.
Some times it can be a few words, sometimes it can be a hundred words.
What I would like to do is resize the popup window to fit the text.
Well actually it is just the height that needs to be resized. I have
set the width to 600. I have put the text in a table and I was thinking
I could set the height of the window to be the height of the table plus
some for room. I don't know if that is possible.
At first I tried to count the number of lines and multiple by a factor
by that doesn't work so nicely because I was getting the number of
lines by dividing the number of charaters by the maximum number of
characters in a line.
Let me know if I am just being stupid and I should abondon this quest
Some times it can be a few words, sometimes it can be a hundred words.
What I would like to do is resize the popup window to fit the text.
Well actually it is just the height that needs to be resized. I have
set the width to 600. I have put the text in a table and I was thinking
I could set the height of the window to be the height of the table plus
some for room. I don't know if that is possible.
At first I tried to count the number of lines and multiple by a factor
by that doesn't work so nicely because I was getting the number of
lines by dividing the number of charaters by the maximum number of
characters in a line.
Let me know if I am just being stupid and I should abondon this quest