Bug 405482

Summary: For some instances, searchbar not in correct location
Product: [Applications] konsole Reporter: Kurt Hindenburg <khindenburg>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: aextefyhzyohfubdhk, nate
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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