The window expands to that width as the labels in the search suggestions screen are not set to line_wrap True, and thus to fit in one line, the window is resized. The proper solution would be setting line_wrap to True, and line wrap mode to Word-wrap, but falling back to character wrapping (as in the attached test text there are no word boundaries, and having only word wrapping would still cause the window to be resized horizontally), but setting this on the suggestion title causes yet another issue, the label having enormous height (probably due to a Pango/GTK3 bug).
** Changed in: software-center (Ubuntu) Importance: Undecided => Medium ** Changed in: software-center (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to software-center in Ubuntu. https://bugs.launchpad.net/bugs/837507 Title: Software Centre expands its window to 19122x951 when 65536-character string is pasted into search box Status in “software-center” package in Ubuntu: Triaged Bug description: 1. Paste a long string into the Software Centre search box, and keep pasting it. 2. Eventually 3. SC window resizes to 19122x951, with various bits of the window no longer drawing as expected. xwininfo: Window id: 0x2e00089 "Ubuntu Software Centre" Absolute upper-left X: 373 Absolute upper-left Y: 189 Relative upper-left X: 1 Relative upper-left Y: 29 Width: 19122 Height: 951 Depth: 24 Visual: 0x21 Visual Class: TrueColor Border width: 0 Class: InputOutput Colormap: 0x20 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +373+189 --18095+189 --18095--90 +373--90 -geometry 19122x951+372--91 String used (happened to be in clipboard) should be attached, as it doesn't fit here when trying to file the bug report on Launchpad, but given the suspicous length of 65536 bytes, it's likely that any string will do. Ideally, Software Centre should not resize its window in response to unrelated input. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/837507/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp