zenity window too big, not even proportional to text length
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zenity (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
* Context
Simple execution of zenity
* Summary
zenity window opens too big.
The text appears on top but most of the window area is just empty.
* How to reproduce
Just type this :
zenity --info --text="$( for (( A=0; $A<20; A=$A+1 )) ; do echo -n 'lorem ipsum ' ; done )"
* expected
Window fits text
* observed
Window much too big. More than 90% window area is blank space.
* Additional information
It's not just a matter of too long a line. If text is cut in short lines, window is still too big (though proportionally it seems).
Notice below "echo -n" replaced with "echo".
zenity --info --text="$( for (( A=0; $A<20; A=$A+1 )) ; do echo 'lorem ipsum ' ; done )"
Trying with different text length shows that window area is not proportional to text length but grows much more rapidly.
In other words, the longer the text, the higher the percentage of wasted space.
This command shows a sequence of 30 zenity windows with increasing text length each time you press enter. You can see the trend easily.
for (( LENGTH=0; $LENGTH<30; LENGTH=$LENGTH+1 )) ; do echo $LENGTH ; zenity --info --text="$( for (( A=0; $A<$LENGTH; A=$A+1 )) ; do echo -n 'lorem ipsum ' ; done )" ; done
lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10
apt-cache policy zenity
zenity:
Installed: 3.8.0-1
Candidate: 3.8.0-1
Version table:
*** 3.8.0-1 0
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: zenity 3.8.0-1
ProcVersionSign
Uname: Linux 3.11.0-15-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Wed Jan 29 08:31:03 2014
MarkForUpload: True
SourcePackage: zenity
UpgradeStatus: No upgrade log present (probably fresh install)
Image showing window much bigger than needed with more than 90% blank area.
Obtained with
zenity --info --text="$( for (( A=0; $A<20; A=$A+1 )) ; do echo -n 'lorem ipsum ' ; done )" &