Summary: | Searching using multi-line text increases the size of the search field, causing it to expand outside of the panel on which it is located | ||
---|---|---|---|
Product: | [Applications] Discover | Reporter: | Alexander Potashev <aspotashev> |
Component: | discover | Assignee: | Dan Leinir Turthra Jensen <leinir> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aleixpol, sensorr |
Priority: | NOR | Keywords: | junior-jobs |
Version: | 5.16.5 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/discover/5181714fb39e597e81030c737947bd1c30281817 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | screenshot |
Hi Alexander, I am afraid I am unable to reproduce this bug in the latest version of Discover. The steps I have followed: 1. In Kate, I have added "first line" and then "second line" in the next line below. 2. CTRL+A and CTRL+C to copy the text I have prepared in Kate 3. Opened Discover, CTRL+F to start searching 4. CTRL+V to paste my text from Kate in 5. Text is pasted in fine with spaces in place of line breaks as expected Please note I have tested this with: Discover Version: 5.17.3 Operating System: Arch Linux KDE Plasma Version: 5.17.3 KDE Frameworks Version: 5.64.0 Qt Version: 5.13.2 Kernel Version: 5.3.13-arch1-1 Could you just confirm that the steps I have followed are correct? (In reply to SensoRR from comment #1) > 5. Text is pasted in fine with spaces in place of line breaks as expected Please add another step: 6. Press Enter. Hi Alexander, Thank you, I can now reproduce the bug. STEPS TO REPRODUCE 1. Add multi-line text to your clipboard from another source. I have added two lines to a new document in Kate and then copied them using CTRL+C. 2. Open Discover and paste the multi-line text into the search form at the top. 3. Press Enter to run the search. OUTCOME The height of the field is increased, causing it to overflow the panel in which it is located. EXPECTED OUTCOME Text provided in the search field should not affect it's dimensions. TESTED WITH Discover Version: 5.17.3 Operating System: Arch Linux KDE Plasma Version: 5.17.3 KDE Frameworks Version: 5.64.0 Qt Version: 5.13.2 Git commit 5181714fb39e597e81030c737947bd1c30281817 by Aleix Pol. Committed on 02/12/2019 at 16:23. Pushed by apol into branch 'Plasma/5.17'. Don't include newlines in searches M +3 -1 discover/qml/SearchField.qml https://commits.kde.org/discover/5181714fb39e597e81030c737947bd1c30281817 |
Created attachment 124125 [details] screenshot SUMMARY Search bar screwed up after pasting multi-line text. STEPS TO REPRODUCE 1. Prepare multi-line text in a text editor, e.g. "1\n2\n" in Kate, where "\n" stands for a line break. 2. Select All (Ctrl+A) in Kate, then copy (Ctrl+C) 3. Run Discover 4. Press Ctrl+F to focus the search bar 5. Press Ctrl+V to paste OBSERVED RESULT 6. The search bar explodes, see screenshot. EXPECTED RESULT Should probably replace every "\n" with a space when pasting. SOFTWARE/OS VERSIONS Operating System: Fedora 31 KDE Plasma Version: 5.16.5 KDE Frameworks Version: 5.61.0 Qt Version: 5.12.5 Kernel Version: 5.3.7-301.fc31.x86_64 OS Type: 64-bit Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz Memory: 15,4 ГиБ ADDITIONAL INFORMATION