focus the match case in find

Stimulsoft Reports.JS discussion
Post Reply
morteza
Posts: 17
Joined: Sat Apr 04, 2020 12:27 pm

focus the match case in find

Post by morteza »

Hello
I have tried to use the find toolbar. As I checked on the demo when find is done the matched case is focused and if it needs it scrolled down.
but In my project, it just highlighted very poorly and even not focused and scrolled (in the case which matched text in lower page)

Best regards.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: focus the match case in find

Post by HighAley »

Hello,

How do you use our tool?
Are you sure that the whole Viewer is shown in the browser window without the scrolling.
The scrolling should be inside of the viewer. The toolbar should not go up when you scroll down.

Thank you.
morteza
Posts: 17
Joined: Sat Apr 04, 2020 12:27 pm

Re: focus the match case in find

Post by morteza »

we are using report in react.
"Are you sure that the whole Viewer is shown in the browser window without the scrolling."
no there is not enough room to show the whole viewr.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: focus the match case in find

Post by HighAley »

Hello,

Please, limit the height of the Viewer.
You could set the fullScreenMode or the height properties of the Viewer.
https://www.stimulsoft.com/en/documenta ... ttings.htm

Or you could limit the height of its container.

Thank you.
morteza
Posts: 17
Joined: Sat Apr 04, 2020 12:27 pm

Re: focus the match case in find

Post by morteza »

Hello
thanks for your help.
I have changed as you suggested :

Code: Select all

    options.height = "100%";
but the problem remained. when there is no limitation in the parent height it works without any problem, but when we limit the viewer parent height like max-height:100vh
the viewer neither scrolled nor focus on fine matches.

Best Regards
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: focus the match case in find

Post by HighAley »

Hello,

Did you try to set the scrollbarsMode to True?
If you sill get the issue, please, send us a sample with screenshot of the issue.
It's hard to guess how to help you without seeing it.

Thank you.
morteza
Posts: 17
Joined: Sat Apr 04, 2020 12:27 pm

Re: focus the match case in find

Post by morteza »

Hello,

Thanks for your help it solved my problem.
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: focus the match case in find

Post by Andrew »

Hello,

Okay great!

Stay safe!
Post Reply