Incrementor icon indicating copy to clipboard operation
Incrementor copied to clipboard

Bad panel visible if big font

Open Kristinita opened this issue 8 years ago • 1 comments

In my Preferences.sublime-settings file is line "font_size": 24. In the Incrementor panel (Ctrl+Alt+Shift+H)of a letter are visible only partial.

Incrementor Panel

In default Sublime Text 3 panels, for example, Find Panel (Ctrl+F), letters and buttons are good visible even if font big.

Find Panel

Thanks.

Kristinita avatar Aug 09 '16 15:08 Kristinita

Nice find. Unfortunately, this seems to be a Sublime Text bug. To make things worse, the panel used to show the "Find" panel isn't exposed through an API. show_*_panel functions are the only ones exposed to plugin developers and do not take font settings as an option.

To test this, I used the "File: New Folder Relative to Current View" command through the Command Palette. ST2 sources (under Default\side_bar.py) show that this "built-in" plugin uses show_input_panel() just like the Incrementor plugin does and is susceptible to the same issue. I don't see how I can fix this bug.

As a workaround (assuming you aren't changing font sizes often), move your mouse to the top border of the panel and double-click the mouse to resize the panel height correctly as soon as the cursor changes to the resize icon.

I'll try a few hacks to fix this but I'm not optimistic about it. If you have any suggestions, I'm willing to try them out. Hope the workaround works out for you.

born2c0de avatar Aug 29 '16 05:08 born2c0de