Bug 222548

Summary: Yast Ccatalog URL is too narrow
Product: [openSUSE] openSUSE 10.2 Reporter: Gerald Pfeifer <gp>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Beta 2 plus   
Target Milestone: ---   
Hardware: i386   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot
Screen shot with MinSize() (modified Wizard3.ycp example)

Description Gerald Pfeifer 2006-11-19 21:00:25 UTC
How to reproduce:

 o Invoke "Installation Sources" module.
 o The "Configure Software Catalogs" appears; choose "Add".
 o The "Media Type" dialog appears; choose "Specify URL..."
 o The "Catalog URL" dialog apperas, and the "URL" entry there is too short.
Comment 1 Gerald Pfeifer 2006-11-19 21:01:20 UTC
Created attachment 106167 [details]
Screenshot
Comment 2 Stefan Hundhammer 2006-11-21 13:51:18 UTC
That looks a lot like a over-layouted dialog - probably with a lot of HWeight() / VWeight() or a lot of VSpacing() / HSpacing() layout helpers.

I recommend to get rid of most of the inner content of the dialog and simply use HVCenter() around the label and the OutputField(). If you have trouble with this, please let me know.
Comment 3 Ladislav Slezák 2006-11-21 15:08:38 UTC
SourceDialogs.ycp:1054:

 `HBox (`HStretch (), `VBox (`VStretch (), proto, `VStretch ()), `HStretch ())

'proto' is a dialog for the selected protocol.

When I use just `HVCenter(proto) it even worse, the widget is smaller.


But when I set 80% width for the widget (10% space on the left and on the right)

 `HBox(`HWeight(10, `HStretch()), `HWeight(80, proto), `HWeight(10, `HStretch()))

it looks right.
Comment 4 Stefan Hundhammer 2006-11-21 15:23:52 UTC
Try this:

`HVCenter(
          `MinWidth( 60, 
                    `TextEntry(`opt(`hstretch), "&URL", url ) 
                   ) 
         );


The weights you use are problematic: They enforce (!) that weight ratio. If there is little space (e.g. because the window is very small), they will also be enforced, so the content will become smaller.

MinSize() OTOH makes sure of a minimum size. If there is more screen space, it will remain unused. If there is less OTOH, the maximum available space will be used. And the HVCenter() is what takes any extra space, i.e. anything more than MinWidth().

See also

    http://w3.suse.de/~sh/y2-ui-revisited.sxi
Comment 5 Stefan Hundhammer 2006-11-21 15:25:43 UTC
Created attachment 106411 [details]
Screen shot with MinSize() (modified Wizard3.ycp example)
Comment 6 Ladislav Slezák 2006-11-22 08:37:24 UTC
HuHa: Thanks!

Fixed in yast2-packager-2.14.9