Page 1 of 1

How to keep a text field height fixed?

Posted: Wed Oct 06, 2021 10:59 am
by Artimidor
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...

Re: How to keep a text field height fixed?

Posted: Wed Oct 06, 2021 11:04 am
by Artimidor
Here are the rest of the attachments...

Re: How to keep a text field height fixed?

Posted: Wed Oct 06, 2021 11:09 am
by Lech Kulikowski
Hello,

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?

Posted: Wed Oct 06, 2021 11:42 am
by Artimidor
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

Re: How to keep a text field height fixed?

Posted: Wed Oct 06, 2021 12:02 pm
by Lech Kulikowski
Hello,

You can use:
appearance.reportDisplayMode
https://www.stimulsoft.com/en/documenta ... ttings.htm

Thank you.

Re: How to keep a text field height fixed?

Posted: Wed Oct 06, 2021 12:17 pm
by Artimidor
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.

Re: How to keep a text field height fixed?

Posted: Thu Oct 07, 2021 6:51 am
by Andrew
Hello,

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?

Posted: Fri Oct 15, 2021 7:08 am
by Artimidor
This looks like a bug to us. If this behavior can be reproduced on designer.stimulsoft.com, is it not a bug?

Re: How to keep a text field height fixed?

Posted: Fri Oct 15, 2021 9:44 am
by Lech Kulikowski
Hello,

No, it is not the bug. On designer.stimulsoft.com is used another reportDisplayMode mode.

Thank you.