Text getting cut off at the bottom of text control
Posted: Sat Apr 05, 2014 1:45 am
Hi Aleksey
We are having a lot of trouble with the text component in the Silverlight Viewer, when it contains a large amount of text and needs to re-render, we find that the last line of text in the control is getting cut-off. The text control is set as editable and after entering the text we re-render the report. We also have placed the text control into a databand, it is the only control on the databand.
I've included an image to show what we mean, as you can see where I have highlighted, the last line of text in the control is being vertically cut-off.
We have tried the following:
1) Setting control to "Grow to Height";
2) Setting LineLimit = True;
3) Adding a Bottom Margin to the control;
4) Setting DisplayFormat = WYSIWYG, Standard or Typeface (none of the settings make a difference).
This only occurs with some text in the control, in other situations the last line of text is not cut off. It mostly occurs when the text needs to break over onto a new page. The issue can be reproduced as follows:
1) Create a new report template;
2) Add a databand;
3) Add a text control onto the databand and set the attributes as follows:
a) CanGrow = true;
b) WordWrap = true;
c) Editable = true;
d) LineLimit = true;
e) Bottom Margin = 6;
f) CanBreak = true;
5) Edit the text to insert text that will cause the control to grow when the report is rendered
4) Generate the report in the Silverlight viewer
7) Notice that the last line of text will be cut off in a number of cases.
thanks
Matt
We are having a lot of trouble with the text component in the Silverlight Viewer, when it contains a large amount of text and needs to re-render, we find that the last line of text in the control is getting cut-off. The text control is set as editable and after entering the text we re-render the report. We also have placed the text control into a databand, it is the only control on the databand.
I've included an image to show what we mean, as you can see where I have highlighted, the last line of text in the control is being vertically cut-off.
We have tried the following:
1) Setting control to "Grow to Height";
2) Setting LineLimit = True;
3) Adding a Bottom Margin to the control;
4) Setting DisplayFormat = WYSIWYG, Standard or Typeface (none of the settings make a difference).
This only occurs with some text in the control, in other situations the last line of text is not cut off. It mostly occurs when the text needs to break over onto a new page. The issue can be reproduced as follows:
1) Create a new report template;
2) Add a databand;
3) Add a text control onto the databand and set the attributes as follows:
a) CanGrow = true;
b) WordWrap = true;
c) Editable = true;
d) LineLimit = true;
e) Bottom Margin = 6;
f) CanBreak = true;
5) Edit the text to insert text that will cause the control to grow when the report is rendered
4) Generate the report in the Silverlight viewer
7) Notice that the last line of text will be cut off in a number of cases.
thanks
Matt