Skip to content

Commit 0f0bb0c

Browse files
committed
Default value for quick_info_popup_max_width taken from self.view.viewport_extent()[0]
1 parent 75dc281 commit 0f0bb0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/commands/quick_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def handle_quick_info(self, quick_info_resp_dict, display_point):
6868
html = self.template.substitute(text_parts)
6969

7070
settings = sublime.load_settings("TypeScript.sublime-settings")
71-
self.view.show_popup(html, flags=sublime.HIDE_ON_MOUSE_MOVE_AWAY, location=display_point, max_height=300, max_width=settings.get("quick_info_popup_max_width") or 1024)
71+
self.view.show_popup(html, flags=sublime.HIDE_ON_MOUSE_MOVE_AWAY, location=display_point, max_height=300, max_width=settings.get("quick_info_popup_max_width") or self.view.viewport_extent()[0])
7272

7373
def get_error_text_html(self, pt):
7474
client_info = cli.get_or_add_file(self.view.file_name())

0 commit comments

Comments
 (0)