Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxTester - toggle line numbers problem #176

Open
GoogleCodeExporter opened this issue Sep 22, 2015 · 2 comments
Open

SyntaxTester - toggle line numbers problem #176

GoogleCodeExporter opened this issue Sep 22, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Open the JSyntaxPane Tester
2. Click "Toggle line numbers", then click it again (disable then enable)
3. The line numbers are now partly obscured until an event like keypress happens

What version of the product are you using? On what operating system?

r095, Windows

Original issue reported on code.google.com by eliben on 4 Jun 2011 at 6:15

@GoogleCodeExporter
Copy link
Author

I should add about (3) that just moving the cursor doesn't make it go back to 
normal view. Editing the document (pressing Enter or other key) does.

Original comment by eliben on 4 Jun 2011 at 7:21

@GoogleCodeExporter
Copy link
Author

I think the problem is that setPreferredWidth() isn't called in 
LineNumbersRuler.install(), but only in LineNumbersRuler().documentChanged()

Adding a call to setPreferredWidth() in LineNumbersRuler.install(), right 
before the call to repaint(), fixes the problem.

Original comment by eliben on 4 Jun 2011 at 7:27

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

No branches or pull requests

1 participant