Compare commits

..

2 Commits

Author SHA1 Message Date
caf932b536 update messages 2017-01-12 11:25:36 +11:00
fa106c8206 fix bug when settings preview's position 2017-01-12 11:24:51 +11:00
4 changed files with 3 additions and 5 deletions

View File

@ -81,7 +81,7 @@ def show_html(md_view, preview):
# remove half of the viewport_extent.y to center it on the screen (verticaly) # remove half of the viewport_extent.y to center it on the screen (verticaly)
vector[1] -= preview.viewport_extent()[1] / 2 vector[1] -= preview.viewport_extent()[1] / 2
# make sure the minimum is 0 # make sure the minimum is 0
vector[1] = 0 if vector < 0 else vector[1] vector[1] = 0 if vector[1] < 0 else vector[1]
# the hide the first line # the hide the first line
vector[1] += preview.line_height() vector[1] += preview.line_height()
preview.set_viewport_position(vector, animate=False) preview.set_viewport_position(vector, animate=False)

View File

@ -49,7 +49,7 @@ Note: MarkdownLivePreview will actualy look in this file for settings that aren'
- `show_sidebar` - `show_sidebar`
- `show_menus` - `show_menus`
They talk for themself, don't they? All of them takes a boolean (`true` or `false`). Note that those settings are *window* specific, not just view specific (that's why they aren't supported). It means that they'll affect the entire window, and every view in it. They talk for themself, don't they? All of them takes a boolean (`true` or `false`). Note that those settings are *window* specific, not just view specific (that's why they aren't supported). It means that they'll affect the entire window, and every view in it.
Here is an example of syntax specific settings for MarkdownLivePreviewSyntax: Here is an example of syntax specific settings for MarkdownLivePreviewSyntax:

View File

@ -2,5 +2,5 @@
"install": "messages/install.txt", "install": "messages/install.txt",
"1.1.2": "messages/1.1.2.txt", "1.1.2": "messages/1.1.2.txt",
"2.0.1": "messages/2.0.1.txt", "2.0.1": "messages/2.0.1.txt",
"2.2.0": "messages/2.2.0.txt" "2.2.1": "messages/2.2.0.txt"
} }

View File

@ -50,5 +50,3 @@ e
s s
t t
sdfsdfsdf