|
Bugzilla – Full Text Bug Listing |
| Summary: | Yast Ccatalog URL is too narrow | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 10.2 | Reporter: | Gerald Pfeifer <gp> |
| Component: | YaST2 | Assignee: | 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
Created attachment 106167 [details]
Screenshot
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. 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. 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
Created attachment 106411 [details]
Screen shot with MinSize() (modified Wizard3.ycp example)
HuHa: Thanks! Fixed in yast2-packager-2.14.9 |