Bug 164300 - Clear button in textboxes should be vertically centered
Summary: Clear button in textboxes should be vertically centered
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-17 15:48 UTC by Luis Román Gutiérrez
Modified: 2015-04-12 06:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Shows the displaced clear buttons (47.40 KB, image/png)
2008-06-17 15:50 UTC, Luis Román Gutiérrez
Details
Clear button a bit misplaced in SystemSettings textbox (2.48 KB, image/jpeg)
2008-07-31 00:58 UTC, Dario Andres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Román Gutiérrez 2008-06-17 15:48:45 UTC
Version:            (using KDE 4.0.80)
Installed from:    Ubuntu Packages
OS:                Linux

I suppose the intended position of textboxes' clear button is to be centered vertically, but there are places where the button shows displaced downwards. I suppose is has to do with the textbox being shorter than expected.
Comment 1 Luis Román Gutiérrez 2008-06-17 15:50:11 UTC
Created attachment 25406 [details]
Shows the displaced clear buttons

This screenshot shows the clear button in systemsettings and kopete's search
bar being displaced.
Comment 2 Camilla Boemann 2008-07-01 22:54:30 UTC
clearbutton is part of kdelibs, and is not a style thing - reassigning
Comment 3 Dario Andres 2008-07-31 00:58:06 UTC
Using KDE 4.1.00 (KDE 4.1.0) (KDEmod) in ArchLinux i686:

In SystemSettings I see the clear button a bit misplaced to the bottom. (see screenshot)
In Dolphin it's totally centered.
In Kopete the clear button is positioned like in SystemSetting

Can you test with 4.1 ?
Comment 4 Dario Andres 2008-07-31 00:58:37 UTC
Created attachment 26513 [details]
Clear button a bit misplaced in SystemSettings textbox
Comment 5 Luis Román Gutiérrez 2008-07-31 16:44:15 UTC
It still happens with 4.1 :(
Comment 6 Dario Andres 2008-12-26 14:49:10 UTC
Can you still reproduce this bug with a recent KDE version? (4.1.3 / 4.2beta2 / 4.2svn) ?  Thanks :) 
Comment 7 Luis Román Gutiérrez 2008-12-26 18:54:30 UTC
(In reply to comment #6)
> Can you still reproduce this bug with a recent KDE version? (4.1.3 / 4.2beta2 /
> 4.2svn) ?  Thanks :) 
> 

Yeah, it still happen with the kubuntu 4.2 beta packages.
Comment 8 Dario Andres 2008-12-26 18:56:50 UTC
@Luis: have you tried to use another font style or size ? Is the "clear button" in KDE4.2 like in the screenshot in comment 4 or the one in your comment 1. ?
Thanks :)
Comment 9 Luis Román Gutiérrez 2008-12-26 22:36:05 UTC
(In reply to comment #8)
> @Luis: have you tried to use another font style or size ? Is the "clear button"
> in KDE4.2 like in the screenshot in comment 4 or the one in your comment 1. ?
> Thanks :)
> 

Well I'been making some tests, and it seems to happen more strongly in the kopete contact filter textbox than in other textboxes and it happen more strongly when using Liberation Sans than using other fonts, at the same sizes.

With Liberation Sans is like in the screenshot I submited, and when using other fonts is like in the one attached to comment 4.
Comment 10 Christoph Feck 2011-12-20 01:44:10 UTC
KLineEdit uses the full widget rect to center the clearButton. It should use the styles' contentRect.
Comment 11 Christoph Feck 2015-04-12 06:57:11 UTC
The button rendering is implemented in Qt5, and won't fixed in kdelibs4.