Bug 405482 - For some instances, searchbar not in correct location
Summary: For some instances, searchbar not in correct location
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 410711 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-03-15 01:02 UTC by Kurt Hindenburg
Modified: 2019-10-24 01:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Hindenburg 2019-03-15 01:02:49 UTC
I noticed while removing konsolesrc and all profiles, and with the system fixed font being Fixedsys Excelsior 3.01 9, the search box is in the middle of the window instead of the normal location.  Any change in Konsole window size will correct searchbar placement.
It appears the first resizeEvent produces a small, incorrect size

resizeEvent  QSize(482, 290)  <-- this is incorrect

resizeEvent  QSize(621, 450)  <-- after small Konsole window increase, correct

This may have always been the case and now it is just noticeable w/ the searchbar.
Comment 1 Kurt Hindenburg 2019-10-06 16:47:30 UTC
*** Bug 410711 has been marked as a duplicate of this bug. ***
Comment 2 Kurt Hindenburg 2019-10-24 01:26:21 UTC
Git commit 98854d3032b5022c936b5348c09edb451ae21dd1 by Kurt Hindenburg, on behalf of Mariusz Glebocki.
Committed on 24/10/2019 at 01:25.
Pushed by hindenburg into branch 'master'.

Fix search bar placement

* Initial search bar position is now correct when "remember window size"
  option is enabled. It used to appear far from right edge/near
  the center
* When scrollbar is hidden, don't take it into account when calculating
  horizontal position.

M  +13   -6    src/TerminalDisplay.cpp

https://invent.kde.org/kde/konsole/commit/98854d3032b5022c936b5348c09edb451ae21dd1
Comment 3 Kurt Hindenburg 2019-10-24 01:26:25 UTC
Git commit 98854d3032b5022c936b5348c09edb451ae21dd1 by Kurt Hindenburg, on behalf of Mariusz Glebocki.
Committed on 24/10/2019 at 01:25.
Pushed by scmsync into branch 'master'.

Fix search bar placement

* Initial search bar position is now correct when "remember window size"
  option is enabled. It used to appear far from right edge/near
  the center
* When scrollbar is hidden, don't take it into account when calculating
  horizontal position.

M  +13   -6    src/TerminalDisplay.cpp

https://commits.kde.org/konsole/98854d3032b5022c936b5348c09edb451ae21dd1