[dolphin] [Bug 429447] URL Navigator has only half of the available width

Felix Ernst bugzilla_noreply at kde.org
Fri Nov 27 18:04:10 GMT 2020


https://bugs.kde.org/show_bug.cgi?id=429447

--- Comment #13 from Felix Ernst <fe.a.ernst at gmail.com> ---
Created attachment 133691
  --> https://bugs.kde.org/attachment.cgi?id=133691&action=edit
Preliminary Patch

(In reply to Fabian Vogt from comment #12)
> (In reply to Fabian Vogt from comment #11)
> > By updating
> > m_globalXOfSplitter in adjustSpacing, it's set propely on the fourth call
> > and the spacing calculations are correct.
> 
> Should I just submit ^ as workaround?

Unfortunately moving just the calculation of m_globalXOfSplitter into
adjustSpacing() will introduce a different bug I ran into already: All other
values are cached whenever Dolphin is resized but m_globalXOfSplitter would
then change whenever adjustSpacing() is calculated, e.g. when changing the
folder. Moving the window and then changing the folder would then lead to wrong
spacing because m_globalXOfSplitter won't have the correct value relative to
the others.

I created a patch that completely updates all cached geometry every time
adjustSpacing() is called. Because that happens once on a timer 100 ms after
every url change, it will happen once shortly after the window is shown. I am
hoping at that point all geometry is where it should be.

Could you see if the attached patch fixes the problem?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list