Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Automatic PageBreaks disappear #20

Open
deepsaggas opened this issue Feb 13, 2015 · 8 comments
Open

Automatic PageBreaks disappear #20

deepsaggas opened this issue Feb 13, 2015 · 8 comments
Labels

Comments

@deepsaggas
Copy link

While editing the line just before 'computedPageBreak', page break disappears.
How to reproduce:

  1. Open a pad with enough text such that it has a pagebreak (automatic ones not manual).
  2. Now edit a line just before computedPageBreak(line which contains div with class='pageBreakComputed').
  3. The computedPageBreak disappears

Possible reason for failure:
redrawPageBreaks() is not called from aceEditEvent hook because callstack type is

  1. idleWorkTimer with callstack.callstack.docTextChanged = true or
  2. handleKeyEvent with callstack.callstack.docTextChanged = false
@JohnMcLear JohnMcLear self-assigned this Feb 15, 2015
@JohnMcLear
Copy link
Owner

Is this proving to be a major issue for you? I feel like by fixing it we will lose a lot of optimizations!

@deepsaggas
Copy link
Author

It is an issue that I think should be fixed but on the other hand if it makes editing too slow, then there is no point in fixing it as page breaks are secondary, they will be used less than typing text obviously.
Were you able to isolate the issue?

@deepsaggas
Copy link
Author

closed by mistake

@JohnMcLear JohnMcLear added the bug label Apr 22, 2015
@JohnMcLear JohnMcLear removed their assignment Mar 16, 2016
@monkey-pawan
Copy link

Hi, any update here? I would like to know the fix, please. Even if you can't commit the fix to repository due to optimization issue or whatnot.

@JohnMcLear
Copy link
Owner

I'm not working on it due to not having time to work on it, you should hire a freelancer to work on it.

@monkey-pawan
Copy link

It's very unlikely to remember what you did about 2 years ago, but if by any chance you remember anything and give me a hint or point me to something useful, I would really appreciate it.

I tried calling reDrawPageBreaks() at aceEditEvent, it stopped disappearing but created other issues like generating new <div>s on Up Arrow. Thank you for your time, even if you don't remember. 😅 Awesome work you did in all those years. 👍

@JohnMcLear
Copy link
Owner

JohnMcLear commented Oct 26, 2017 via email

@monkey-pawan
Copy link

Np.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants