Bug 159954 - Kate (KDE4) replace resizes window
Summary: Kate (KDE4) replace resizes window
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 15:50 UTC by Asa Ayers
Modified: 2008-12-08 23:19 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Asa Ayers 2008-03-27 15:50:24 UTC
Version:            (using KDE 4.0.2)
Installed from:    Ubuntu Packages

*I reported this at https://bugs.launchpad.net/ubuntu/+source/kdesdk-kde4/+bug/193063 and was asked to file upstream.

I've been using KDE4 kate in gnome (4:4.0.2-0ubuntu1~gutsy1~ppa1) and if I press Ctrl+R to replace some text the window is resized wider than my screen. If kate was maximized one side lines lines up with my screen while the other side hangs off my monitor. Clicking the mouse anywhere in the window causes the window to switch so the opposite side hangs off my screen. If the window is not maximized I can resize the window, but I can only make it larger. This started happening after KDE4.0.1 was released in the PPA.

I just edited my ~/.kde4/share/config/katerc and removed my Search Pattern History and Replacement Text History and it works now. The problem was that when Kate creates the replace dialog at the bottom of the window, the drop down is made wide enough for the longest search or replace you've ever done.

Steps to reproduce:
1. Open Kate
2. Press Ctrl+R to get the search and replace options
3. search for a very long sentence that doesn't fit within the search field.
4. close and reopen kate
5. When you press Ctrl+R the window will expand wide enough to fit your entire search into the drop down at the bottom. You can make the window wider, but not smaller.
Comment 1 Darren Hatherley 2008-04-01 12:00:09 UTC
I can confirm this bug. I concur with the poster that it appears to be based on the find and/or replace text widget being resized to fit the widest history text for those widgets, which can have the effect of making the window wider than the screen. This severely affects the usability of find/replace widget as the action buttons "find/next/replace/all" can be pushed off-screen meaning the user must move the window to access them.

The bug is present even when the kate window is maximised: pressing Ctrl-R will un-maximise the window and resize it to wider than the screen.

I am using KDE 4.0.2 from the PPA repositories for Kubuntu Gutsy on one computer and KDE 4.0.2 from the Kubuntu Hardy beta release on another. The bug as described is present on both.
Comment 2 Jonathan Thomas 2008-04-22 18:57:24 UTC
I can confirm this with KDE 4.0.3.
Comment 3 Dario Andres 2008-08-01 16:27:40 UTC
Version 4.1.00 (KDE 4.1.0) (KDEmod) in ArchLinux i686:
I can't reproduce this bug. Can you still reproduce it with a recent version of KDE (4.0.5 or 4.1) ?
Comment 4 Nico Schlömer 2008-08-01 16:35:09 UTC
I had the same bug with Kate in 4.0.0 through to 4.0.5, but in 4.1.0 it has disappeared for me.
Comment 5 Asa Ayers 2008-08-01 16:43:57 UTC
This bug is still present in Version: 4:4.1.0-0ubuntu1~hardy1~ppa2.

I'm using the Ubuntu Hardy Heron PPA listed here:
https://edge.launchpad.net/~kubuntu-members-kde4/+archive


Comment 6 Rasmus Steinke 2008-08-21 11:29:11 UTC
Archlinux with kdemod (which is vanilla), i can reproduce the bug, but it happens ALWAYS when i open the replace dialog, i dont even have to enter a long string...
(1024x768 resolution)
Comment 7 Nico Schlömer 2008-09-05 19:45:14 UTC
... aaaaand confirmed on kate 3.1.1 (kde 4.1.1).

the problem was gone in the 4.1.0, and now re-appeared: just doing CTRL+r makes the window way to large (horizontally).
Comment 8 albert 2008-09-27 19:05:14 UTC
I confirm that bug in kde 4.1.1, ubuntu package. 
Comment 9 Hervé Fache 2008-11-25 11:55:20 UTC
Bug still present in KDE 4.1.3.

I have to say that I wish there we could have the good old search/replace dialog back as an option, as the new one not only resizes the window for the search, but does not put it back as it was before the search.

This makes it difficult to respect width-based coding rules, and thus renders Kate much less usable than it was in KDE3.
Comment 10 Matthew Woehlke 2008-11-26 18:25:02 UTC
> This makes it difficult to respect width-based coding rules, and thus renders
> Kate much less usable than it was in KDE3.

IMO this is what the static word wrap marker is for :-). I have /never/ used window size as an indicator; it's far too much effort compared to just having a neat line at the end of the "last allowed column".
Comment 11 Jonathan Thomas 2008-12-08 23:19:47 UTC
I cannot reproduce this any more with the new replace dialog in KDE 4.2 beta1.