Skip to content

Commit

Permalink
SSH Importer: Width fix to avoid cut of CheckBoxFrame Label (#391)
Browse files Browse the repository at this point in the history
* SSH Importer: Width fix to avoid cut of CheckBoxFrame Label

* Added comment clarifying use of label length and bumped version
  • Loading branch information
teclator committed Aug 17, 2016
1 parent 0165dd9 commit 5b57673
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
7 changes: 7 additions & 0 deletions package/yast2-installation.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Aug 16 15:34:43 UTC 2016 - kanderssen@suse.com

- SSH Importer: Width fix to avoid cut of CheckBoxFrame Label
(fate##319624)
- 3.1.209

-------------------------------------------------------------------
Tue Aug 16 13:28:14 CEST 2016 - locilka@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-installation
Version: 3.1.207
Version: 3.1.208
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
37 changes: 22 additions & 15 deletions src/lib/installation/dialogs/ssh_import.rb
Expand Up @@ -62,23 +62,30 @@ def copy_config
end

def dialog_content
label = _("I would like to import SSH keys from a previous installation")
HSquash(
VBox(
CheckBoxFrame(
Id(:import_ssh_key),
_("I would like to import SSH keys from a previous installation"),
!(importer.device.nil? || importer.device.empty?),
VBox(
HStretch(),
VSpacing(1),
HBox(
HSpacing(2),
Mode.config ? device_name : partitions_list_widget
),
VSpacing(3),
HBox(
HSpacing(2),
Left(copy_config_widget)
# For some reason the CheckBoxFrame Label is cut if the label size
# exceeds the CheckBoxFrame content's width. MinWidth with label length
# is used to avoid this issue.
MinWidth(
label.length,
CheckBoxFrame(
Id(:import_ssh_key),
label,
!(importer.device.nil? || importer.device.empty?),
VBox(
HStretch(),
VSpacing(1),
HBox(
HSpacing(2),
Mode.config ? device_name : partitions_list_widget
),
VSpacing(3),
HBox(
HSpacing(2),
Left(copy_config_widget)
)
)
)
),
Expand Down

0 comments on commit 5b57673

Please sign in to comment.