Bug 438875

Summary: yast2-printer: printer selection window too small
Product: [openSUSE] openSUSE 11.1 Reporter: Miquel A. Noguera <ibz>
Component: YaST2Assignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jsmeix
Version: Factory   
Target Milestone: RC 1   
Hardware: PC   
OS: Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screenshot

Description Miquel A. Noguera 2008-10-24 19:04:14 UTC
When there is more than one printer in system, it's difficult to browse them.
Comment 1 Miquel A. Noguera 2008-10-24 19:11:24 UTC
Created attachment 247930 [details]
screenshot
Comment 2 Johannes Meixner 2008-10-31 15:27:29 UTC
This is how the GUI does it.
It cannot be fixed in the printer module.
As a workaround, increase the window size.
This should let the GUI alos increase the content.
Comment 3 Johannes Meixner 2008-11-04 13:10:31 UTC
FYI:

I experimented with VWeight and MinHeight
but the results were even more poor
so that this does not help.

I use VStretch ("rubber bands") for the space between
the sections in the dialog and as far as I see,
the root cause is that the GUI does not shrink such
a rubber band space sufficiently (it could become zero
without causing problems but it doesn't become zero).
Instead the Table with the connevtions is shrinked
below an reasonable size (less than two items are shown).
See attachment #247930 [details] how much empty space there still is
which could be used to have the Table in a more reasonable size.
Comment 5 Johannes Meixner 2008-11-06 11:35:44 UTC
A YaST GUI expert explained the underlying reason to me:

There are four stretchable widgets in attachment #247930 [details]
from top down to the bottom:
- the Table with the connections
- a VStretch for the space
- a SelectionBox with the drivers
- a VStretch for the space

The GUI handles all four stretchable widgets more or less equal
so that the overall available stretchable space in the dialog
gets more or less equally divided among all stretchable widgets.

I experimented again with MinHeight for the Table but this
has some strange looking side effects and I don't want to
add more and more layout related stuff which would it make
only oversophisticated in the end.

Meanwhile I fixed the dialog layout of the Add New Printer
Configuration dialog and of the Modify queue dialog
so that both dialogs work also o.k. in ncurses mode.

This mitigates also the issue in this bug.
I.e. the Modify queue dialog should now look o.k.
in graphical mode for a "normal" window size.
Comment 6 Johannes Meixner 2008-11-06 12:23:57 UTC
Fixed it yast2-printer 2.17.33 which I submitted
right now to STABLE/FACTORY and also to the
openSUSE build service where the RPMs are available
for openSUSE 10.3, 11.0 and FACTORY at
http://download.opensuse.org/repositories/home:/jsmeix/