Random Scroll Jumps

3 posts, 0 answers
  1. Robert
    Robert avatar
    2 posts
    Member since:
    Jun 2018

    Posted 06 Jun 2018 Link to this post

    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. Robert
    Robert avatar
    2 posts
    Member since:
    Jun 2018

    Posted 22 Jul 2018 Link to this post

    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

  3. Rumen
    Admin
    Rumen avatar
    13980 posts

    Posted 06 Feb Link to this post

    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.
Back to Top