*** This bug is a duplicate of bug 1087520 *** https://bugs.launchpad.net/bugs/1087520
** This bug has been marked a duplicate of bug 1087520 Zenity windows get TOO HIGH when text contains many words -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to zenity in Ubuntu. https://bugs.launchpad.net/bugs/1206760 Title: Zenity text windows too tall with long text Status in “zenity” package in Ubuntu: Confirmed Bug description: It seems that with many versions of zenity 3.60 and below, 3 of the text type dialogs ( --info --warning --error ) have significant sizing issues with text wrapping enabled. Long strings of text seem to cause extreemly tall dialogs such as this first example zenity --info --text " Hello there friends. Hello there friends. Hello there friends. Hello there friends. d d d d d d d d d d d dd asdfsadf sdf sad fas dfas dfas df a adsfasfas" one workaround might be to turn off wrapping zenity --info --text " Hello there friends. Hello there friends. Hello there friends. Hello there friends. d d d d d d d d d d d dd asdfsadf sdf sad fas dfas dfas df a adsfasfas" --no-wrap but this can cause dialogs to be too large vertically I noticed that by forcing the minimal width as so, (I pass 1, but it seems that zenity uses a hardcoded minimum) zenity --info --text " Hello there friends. Hello there friends. Hello there friends. Hello there friends. d d d d d d d d d d d dd asdfsadf sdf sad fas dfas dfas df a adsfasfas" --width=1 the height of the dialog seems to be the same as the first example. However, with the skinny dialog, the full dialog is used, and the text is wrapped much better. Therefore, my guess is that when text wrapping is enabled (which it is by default) for --info --warning and --error Zenity is wrapping the text with the hardcoded minimal width, and calculating the needed height for wrapping the text with the minimal width. However, zenity usually later on uses a different much wider width when the dialog is displayed, which therefore causes the text wrapping to use less height. However zenity still ends up setting the height of the window to what it would need to be to fit the text if the window was the minimal width, in cases causing excessivly large and tall zenity windows. This is just my guess from what I can see. dialogs with --question seem to be sized a bit more sanely. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/1206760/+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