davidc1986 Posted December 17, 2009 Share Posted December 17, 2009 HiI have a detail band where 1 column has 4 rows of text fields, all other columns have only 1 text field but some of these are allowed to stretch with overflow. The text fields in the column with 4 rows are set to remove line when blank.e.g.-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------[TextField] [TextField] [TextField] [stretchTextField] [stretchTextField] [TextField] [TextField] [TextField]-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------In most cases only 2 of the 4 text fields in the column with 4 will contain data so the band should shrink to 2 rows which it does correctly unless the other text fields stretch onto more than 2 rows, when this happens i expect the band to be as large as the stretched field requires e.g. if its 3 rows then the band should be 3 rows high etc however large gaps appear at the bottom of the band, so when the field stretches to 3 rows the band is 4 rows high and when it stretches to 4 rows it looks like the band is about 8 rows high. Also large gaps appear at the bottom of the page even though there is enough space for several more bands to fit onto the page.Any help would be greatly appreciatedDavidPost Edited by davidc1986 at 12/17/2009 09:54Post Edited by davidc1986 at 12/17/2009 09:55Post Edited by davidc1986 at 12/17/2009 09:55Post Edited by davidc1986 at 12/17/2009 09:55 Link to comment Share on other sites More sharing options...
hussainian Posted December 17, 2009 Share Posted December 17, 2009 If I'm getting the question right, then I think that you should have a look at "Position Type" and "Stretch Type" properties of the Text Fields. Link to comment Share on other sites More sharing options...
teodord Posted December 17, 2009 Share Posted December 17, 2009 Hi, I suggest you make your text fields very small. Those 4 text fields in the second column could all have height="1", since they will stretch anyway, because of their isStretchWithOverflow="true". Make sure you use positionType="Float" for them.This way, at design time, the 4 text fields could all be squized and look like they are all in row with the other text fields.At runtime, they will expand as required and they will not interfere with other text fields stretching or not. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
davidc1986 Posted December 17, 2009 Author Share Posted December 17, 2009 Thank you very much that did the trick! David Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now