How to keep a text field height fixed?
How to keep a text field height fixed?
For design purposes, I try to ensure that a text field doesn't get any bigger than just two lines, no matter what. However, for testing, I add four lines, as whenever the field is filled by code, the size might vary. In design mode I see just the two lines (pic 1). Word Wrap is off, Max Number of Lines is set to 2. Regardless, the preview (pic 2) always displays the four lines, and whatever property I change, it doesn't seem as though I can influence this behavior.
Have a look at the attached screenshots and the attached report file for the source. Let me know if there's a way to accomplish this, because as of yet I haven't found one...
Have a look at the attached screenshots and the attached report file for the source. Let me know if there's a way to accomplish this, because as of yet I haven't found one...
- Attachments
-
- 1.png (27.2 KiB) Viewed 1220 times
Re: How to keep a text field height fixed?
Here are the rest of the attachments...
- Attachments
-
- Report_Example.mrt
- (5.79 KiB) Downloaded 62 times
-
- 2.png (1.07 KiB) Viewed 1217 times
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to keep a text field height fixed?
Hello,
You should set the ReportDisplayMode for the viewer to Div:
https://www.stimulsoft.com/en/documenta ... ttings.htm
Thank you.
You should set the ReportDisplayMode for the viewer to Div:
https://www.stimulsoft.com/en/documenta ... ttings.htm
Thank you.
Re: How to keep a text field height fixed?
Hmmm... We're using Reports and Dashboards for JS and it looks like there is no such setting to be found there...
See here: https://www.stimulsoft.com/en/documenta ... ttings.htm
See here: https://www.stimulsoft.com/en/documenta ... ttings.htm
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to keep a text field height fixed?
Hello,
You can use:
appearance.reportDisplayMode
https://www.stimulsoft.com/en/documenta ... ttings.htm
Thank you.
You can use:
appearance.reportDisplayMode
https://www.stimulsoft.com/en/documenta ... ttings.htm
Thank you.
Re: How to keep a text field height fixed?
Hmm again...
We have the problem in the designer, and there's no option there.
Also, side note: Try the version found at designer.stimulsoft.com. The problem is there too.
We have the problem in the designer, and there's no option there.
Also, side note: Try the version found at designer.stimulsoft.com. The problem is there too.
Re: How to keep a text field height fixed?
Hello,
This is related to the JS files not the designer exe. In designer exe you may not set such an option.
Thank you.
This is related to the JS files not the designer exe. In designer exe you may not set such an option.
Thank you.
Re: How to keep a text field height fixed?
This looks like a bug to us. If this behavior can be reproduced on designer.stimulsoft.com, is it not a bug?
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to keep a text field height fixed?
Hello,
No, it is not the bug. On designer.stimulsoft.com is used another reportDisplayMode mode.
Thank you.
No, it is not the bug. On designer.stimulsoft.com is used another reportDisplayMode mode.
Thank you.