SublimeRope icon indicating copy to clipboard operation
SublimeRope copied to clipboard

auto-size "Rope: Show Documentation" window

Open glyph opened this issue 13 years ago • 6 comments

Whenever I use "rope: show documentation", it pops up a tiny little window at the bottom of the screen that shows maybe 1 or 2 lines of documentation. It would be really nice if the window would grow (to some reasonable maximum, of course) to fit the docstring that it's trying to display.

glyph avatar Jul 21 '12 07:07 glyph

I was curious about this and did some tests. Seems like method size() in view always returns 0 so the Region object is created with (0, 0) as first and seccond end of the región.

But hardcoding the first and second end of regions seems to don't have effect at all. Any clues?

DamnWidget avatar Jul 21 '12 18:07 DamnWidget

@DamnWidget - I'm not sure what you're talking about. What view? What region?

glyph avatar Jul 22 '12 03:07 glyph

@glyph - Well, I was talking about the behaviour that you reported before about the documentation window. My question wasn't "directly" for you, sorry I didn't specified about that I wasn't requesting more information from you.

DamnWidget avatar Jul 22 '12 09:07 DamnWidget

@DamnWidget: view.viewport_extent() does shows the size of the view (x, y), and calling it after changing the size by mouse dragging reflects the changes, but I can't make view.set_viewport_position((new_x, new_y)) do something useful either. Bummer.

OscarL avatar Jul 24 '12 21:07 OscarL

@OscarL yup I think there are some limitations in the ST2 code itself.

DamnWidget avatar Jul 24 '12 21:07 DamnWidget

@DamnWidget @OscarL If these are problems with ST2, have you reported it on http://sublimetext.userecho.com ? If so it should be linked here so that those interested in this bug can follow developments on the underlying problem on the support site.

glyph avatar Jan 14 '13 23:01 glyph