-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Set the font size before opening the documents #6496
Comments
I verified that #7093 is fixed for any scroll positions only if Word Wrap is off. We may need to fix #7168 sooner since changes in this pull request make the scroll position off by the number of wrapped lines. Done with review and will merge after you fix the JSDoc nits. |
This does fix all the reload issues, with or without word wrap on. And I checked with the steps in issue #7168 and is fixed too. The issue that this doesn't fix yet is increasing the font-size with Word Wrap on, but the issue there is in how we restore the scroll position. I need to check later if I can fix that using some of the new CM apis. |
Yes, I meant #7168 with some font-size adjustment. I didn't remember that I filed #7168 without any font-size adjustment. |
|
|
|
Edit: nvm the last comment, we only convert from the local storage. |
|
This may or may not be the proper place for this question. But would it be possible to expose the font sizing functionality as an API? I have added the ability to change the font size and type in Themes and it would be really smooth if I could leverage Brackets API instead of Themes completely taking over it. Any thoughts? |
|
|
|
Ok, so here is how themes is working. I have an input field where you can set a particular font size you want to use. There is no button to increase/decrease the size. So, is there a way to tell bracket to set the font size to a specific number/unit? If not, that's no problem. I will just continue to override the style that brackets puts in the document. |
|
Anyway, what about just removing the whole line height part and place it into the CSS? if we just set it to 1.25, then we wouldn't need to update it everytime we update the font-size.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nice job! I really like the changes to new view state. Merging now. |
Thursday Mar 13, 2014 at 02:28 GMT
Originally opened as adobe/brackets#7185
This is a fix for issue #7093. The idea is to add the styles with the new font-size and line-height before opening any document. To do this, when changing the font-size, we now save the strings that we use to set the styles, so we can use them to set the styles without having any editor open.
TomMalbran included the following code: https://github.com/adobe/brackets/pull/7185/commits
The text was updated successfully, but these errors were encountered: