setroubleshoot/0004-Resize-all-solutions-panels-horizontally.patch
Petr Lautrbach e8f87acc6c Backport fixes from 3.3.12
Do not backport string changes since we are after string freeze phase

- Don't stop when the plugin directory is empty
- Fix missing margins on Troubleshoot window
- Resize all solutions panels horizontally
- Fix missing priority color for proposed solutions
- Set translation domain for Gtk.Builder() object to have strings
  correctly translated
- Make labels on GtkButtons translatable
- Handla all exceptions from do_analyze_logfile()
- Fix semi-translated messages
- Do not catch POSIX signals (rhbz#1366004, rhbz#1419245)
2017-09-15 10:56:05 +02:00

28 lines
1.3 KiB
Diff

From 5e97f34c60487476527581ed7ba93fd3a8406c06 Mon Sep 17 00:00:00 2001
From: Martin Palenik <mpalenik@redhat.com>
Date: Fri, 4 Aug 2017 13:05:44 +0200
Subject: [PATCH 04/19] Resize all solutions panels horizontally
After clicking the Troubleshoot button, the height of the proposed solutions has been too small, hiding parts of the then-text. Scrolling has been required to read the whole then-text, even though there was still vertical space inside the window that allowed more text to be displayed.
This fix allows dynamic (horizontal) resize of all solution panels, depending on the actual window size.
---
framework/src/setroubleshoot/browser.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/framework/src/setroubleshoot/browser.py b/framework/src/setroubleshoot/browser.py
index 5e0977f..2169693 100644
--- a/framework/src/setroubleshoot/browser.py
+++ b/framework/src/setroubleshoot/browser.py
@@ -503,6 +503,7 @@ class BrowserApplet:
then_scroll.set_sensitive(False)
then_scroll.set_size_request(450, 90)
then_scroll.set_hexpand(True)
+ then_scroll.set_vexpand(True)
# self.table.resize(rows, cols) GtkGrid resize automatically
sev_toggle.connect("toggled", self.on_sev_togglebutton_activated, rows)
# col = 0
--
2.14.1