This is a migrated thread and some comments may be shown as answers.

Random Scroll Jumps

2 Answers 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 07 Jun 2018, 03:30 AM

Hi Telerik,

When I edit certain html, the radeditor scrolls the editing pane (div or iframe) to a position that does not show the cursor.

In IE the pane is usually scrolled mid way or to the end of the text.

In Chrome, it scrolls the pane so the cursor is on line 1, which is annoying as a scroll should not happen unless the cursor is off screen.

Test Case:

  • Open the demo page (https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx)
  • Switch to HTML view
  • Select all html and delete
  • Paste the following html code into the editor

<p>&lt;!-- collumn 1 --&gt; <br />
&lt;flow inset="0,0,0,0" width="30%"&gt; <br />
&lt;flow inset="0,0,0,0" firstlineindent="1"&gt; <br />
&lt;material fontstyle="bold"&gt; <br />
&lt;mattext&gt;asdasd as asd&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow&gt; <br />
&lt;flow inset="0,0,0,0"&gt; <br />
&lt;response_lid ident="aorta_${ItemId}" rcardinality="multiple"&gt; <br />
&lt;render_choice&gt; <br />
&lt;flow_label inset="0,0,0,0"&gt; <br />
&lt;response_label ident="36"&gt; <br />
&lt;flow_mat orientation="horizontal" inset="0,0,0,0"&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;36.&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;asd sasda sd a&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/response_label&gt; <br />
&lt;/flow_label&gt; <br />
&lt;mattext&gt;dfg hjgh dfgdfg&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/response_label&gt; <br />
&lt;/flow_label&gt; <br />
&lt;flow_label inset="0,0,0,0"&gt; <br />
&lt;response_label ident="43"&gt; <br />
&lt;flow_mat orientation="horizontal" inset="0,0,0,0"&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;43.&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;ty bfdgh ghuy67 hgfdf&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/response_label&gt; <br />
&lt;/flow_label&gt; <br />
&lt;flow_label inset="0,0,0,0"&gt; <br />
&lt;response_label ident="44"&gt; <br />
&lt;flow_mat orientation="horizontal" inset="0,0,0,0"&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;44.&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;45g dfgsdfgdfsgdd&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/response_label&gt; <br />
&lt;/flow_label&gt; <br />
&lt;/render_choice&gt; <br />
&lt;/response_lid&gt; <br />
&lt;/flow&gt; <br />
&lt;/flow&gt; <br />
&lt;!-- end collumn 1 flow --&gt; <br />
&lt;!-- collumn 2 --&gt; </p>

  • Switch to design view
  • Locate the following text "<mattext>43.</mattext> "
  • place the cursor at the beginning of the line and hit enter
  • The edit pane will scroll.

Any help would be great! Thanks.

Robert.

 

2 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 22 Jul 2018, 10:18 PM

Is this too hard an issue? or dropped off the radar? No reply from Telerik yet!

Can you please look at this and let me know;

a, if you can reproduce it.

b. if you can fix it.

Cheers,

Robert

0
Rumen
Telerik team
answered on 06 Feb 2019, 12:26 PM
Hi Robert,

The only thing that we can suggest now is that setting NewLineMode to Br will resolve the issue.

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or