diff --git a/helpwidget.py b/helpwidget.py
index a7b8930..b89922e 100644
a
|
b
|
class _HelpStage(Gtk.EventBox): |
142 | 142 | self.add(hbox) |
143 | 143 | |
144 | 144 | vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) |
145 | | hbox.pack_start(vbox, expand=True, fill=False, |
| 145 | hbox.pack_start(vbox, expand=True, fill=True, |
146 | 146 | padding=_DEFAULT_SPACING) |
147 | 147 | |
148 | 148 | self.preview = _PreviewWidget(icon_file_func) |
… |
… |
class _PreviewWidget(Gtk.DrawingArea): |
824 | 824 | logging.debug('FUNC: _configure_event_cb()') |
825 | 825 | (width, height) = (event.width, event.height) |
826 | 826 | |
827 | | avail_width = width - _DEFAULT_SPACING * 2 |
828 | | other_height = avail_width * 3 / 4 |
| 827 | actual_width = width - style.GRID_CELL_SIZE * 4 |
| 828 | actual_height = actual_width * 3 / 4 |
829 | 829 | |
830 | | avail_height = height - _DEFAULT_SPACING * 2 |
831 | | other_width = avail_height * 4 / 3 |
| 830 | # other_height = avail_width * 3 / 4 |
832 | 831 | |
833 | | if other_height < avail_height: |
834 | | actual_width = avail_width |
835 | | actual_height = other_height |
836 | | else: |
837 | | actual_width = other_width |
838 | | actual_height = avail_height |
| 832 | # avail_height = height - _DEFAULT_SPACING * 2 |
| 833 | # other_width = avail_height * 4 / 3 |
| 834 | |
| 835 | # if other_height < avail_height: |
| 836 | # actual_width = avail_width |
| 837 | # actual_height = other_height |
| 838 | # else: |
| 839 | # actual_width = other_width |
| 840 | # actual_height = avail_height |
| 841 | |
| 842 | self.set_size_request(actual_width, actual_height) |
839 | 843 | |
840 | 844 | icon_height = int(math.ceil(actual_height * _ICON_HEIGHT)) |
841 | 845 | board_height = actual_height - icon_height |