Bug 488727 - search and replace min size issue
Summary: search and replace min size issue
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-19 10:53 UTC by schnuffpluff
Modified: 2024-06-20 07:37 UTC (History)
1 user (show)

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


Attachments
Screenshot (12.90 KB, image/png)
2024-06-19 10:53 UTC, schnuffpluff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schnuffpluff 2024-06-19 10:53:48 UTC
Created attachment 170632 [details]
Screenshot

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
the search field needs a different min size or something, Im always finding myself with this situation where the UI doesnt switch although the search field is too small

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: tuxedoOS (64-bit)
(available in About System)
KDE Plasma Version:  5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Kåre Särs 2024-06-19 12:03:19 UTC
Thanks for the report.

To get that same situation for me, I have to decrease the window size so much that I only have space for 40 characters on a line (or about 50 if I disable the minimap and line-numbers). Is that the same for you?

The current logic for switching layout is if the tool-view is higher than it is wide.

Do you have an idea of how to change the layout-change logic so that it would work both on the side and on the bottom?
Comment 2 schnuffpluff 2024-06-19 21:08:35 UTC
(In reply to Kåre Särs from comment #1)
> Thanks for the report.
> 
> To get that same situation for me, I have to decrease the window size so
> much that I only have space for 40 characters on a line (or about 50 if I
> disable the minimap and line-numbers). Is that the same for you?
> 
> The current logic for switching layout is if the tool-view is higher than it
> is wide.
> 
> Do you have an idea of how to change the layout-change logic so that it
> would work both on the side and on the bottom?

yep, thats about right. I see what you're saying. If i make the toolview larger/higher, it switches. This is a workaround that works for me.

As for an idea, i have none, just that the field might need some minimum size. But i am no developer by any stretch, so i have no idea how that would be implemented. Sorry
Comment 3 Kåre Särs 2024-06-20 07:37:55 UTC
OK, thanks!

If the workaround is good enough, I can close this.

A minimum size could be added, but then we would need a minimum size for the height to, as the vertical layout is quite much higher...

If you get an idea, just make a new  report :)

/Kåre