No result view can cause launcher window to grow

Bug #1630852 reported by Matt Spaulding
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Granite
Fix Committed
Low
Danielle Foré
Slingshot
Won't Fix
Low
Unassigned

Bug Description

The "No Result" view of Slingshot can cause the launcher's window to grow in size. The problem is that it stays that way. If you search for a long term that doesn't exist the window will just continue to grow to fit the text of the search term. After closing the launcher and re-opening the size of the launcher window will still be large.

There are a few different solutions I thought of for this.

1. Cut off the result text and use an ellipsis so that the window doesn't grow.
2. Resize the window back to it's original size after it is closed (probably triggered by a signal and you would need to clear the title text for the alert view).
3. Just don't display the result text in the window.

I think the 3rd solution is the best, personally. The search term is already in the search bar and there's no need to repeat it in the window. Just have the window display "No Results" seems like a cleaner solution.

You can view the problem in action here:
https://youtu.be/LXZKCrfZhGo

Tags: bitesize

Related branches

Changed in slingshot:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Danielle Foré (danrabbit) wrote :

Moving this report to granite. We're using a Granite.Alertview here and the label for Alertview is not public, so what we need to do is set wrap to true in granite.

Since the label isn't public, we can't fix it in Slingshot. Marked as "Won't fix" for Slingshot.

Changed in slingshot:
status: Confirmed → Won't Fix
Changed in granite:
status: New → Confirmed
milestone: none → juno-beta1
tags: added: bitesize
Changed in granite:
importance: Undecided → Low
Changed in granite:
assignee: nobody → Daniel Fore (danrabbit)
status: Confirmed → In Progress
Zisu Andrei (matzipan)
Changed in granite:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.