JulianEberius / SublimeRope

ST2 only, use SublimePythonIDE with ST3: Adds Python completions and some IDE-like functions to Sublime Text 2, through the use of the Rope library
GNU General Public License v2.0
250 stars 26 forks source link

auto-size "Rope: Show Documentation" window #33

Open glyph opened 12 years ago

glyph commented 12 years ago

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.

DamnWidget commented 12 years ago

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?

glyph commented 12 years ago

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

DamnWidget commented 12 years ago

@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.

OscarL commented 12 years ago

@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.

DamnWidget commented 12 years ago

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

glyph commented 11 years ago

@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.