Bug#46266: horizontal scrolling doesn?t work when searching found a word
[email protected] 8 Aug 2002 17:44:43 -0000
| Newsgroups | gmane.comp.kde.devel.kate |
|---|---|
| Message-ID | <[email protected]> |
Package: kate Version: KDE 3.0.2 Severity: normal Installed from: Gentoo Packages Compiler: Not Specified OS: Linux OS/Compiler notes: Not Specified Hi, sometimes i have texts to edit, where some lines are longer than would fit into the kate window. so a horizontal scroll bar appears. when i do search or search and replace in kate, the part of kate, which calculates, where the horizontal scrollbar value has to be to show the whole selected word, most times fails. sometimes it does stuff right by accident, and sometimes only the right part of the most right char of the word is shown, and sometimes only the left part of the first char. i had a short look into the kate sources, and it seems, this case is not cared for. i guess qt moves the text in the exit window, so that one can see where the marked text is. so the prog has to calculate the column of the first and last char of the found text and has to make sure the leftmost char in the window is smaller as the first and the rightmost char in the win is bigger than the last char in the found word (if the word/found text) is not too long. it would also be cool, if the search and replace dialogs would take care for not placing themselves over the found word, and if they would allow the text to be scrolled horiz/vert., if the search/repl. dialog is open. thx, Holger (Submitted via bugs.kde.org) (Complete bug history is available at http://bugs.kde.org/db/46/46266.html)