nvpy icon indicating copy to clipboard operation
nvpy copied to clipboard

Search box small

Open a59 opened this issue 6 years ago • 1 comments

I have just installed nvpy on Window 7. I have noticed that the search box is small; the text that I type is taller than the space in which to type it. Is there a configuration parameter to make the height of the search box taller?

a59 avatar May 11 '18 17:05 a59

I succeeded to reproduce this problem under those conditions.

The cause of this problem is that the height of background image are fixed. The search box has an background image consists borders and magnifying glass icon. The width of image can be easily adjusted to width of the search box. But height of image can not easily adjusted because a magnifying glass icon will be distorted :-(

WORKAROUND: If you don't care about design of the search box, remove style="Search.entry" argument from nvpy/view.py:1299.

# Before
self.search_entry = TriggeredcompleteEntry(search_frame, self.config.case_sensitive, textvariable=self.search_entry_var, style="Search.entry")
# After
self.search_entry = TriggeredcompleteEntry(search_frame, self.config.case_sensitive, textvariable=self.search_entry_var)

I will fix this problem at a later date.

yuuki0xff avatar May 21 '18 11:05 yuuki0xff