diff --git a/mirage/__init__.py b/mirage/__init__.py index 638887f..78a238b 100755 --- a/mirage/__init__.py +++ b/mirage/__init__.py @@ -1644,21 +1644,10 @@ self.layout.move(self.imageview, x_shift, y_shift) def available_image_width(self): - width = self.window.get_size()[0] - if not self.fullscreen_mode: - if self.thumbpane_show: - width -= self.thumbscroll.size_request().width - return width + return self.layout.get_allocation().width def available_image_height(self): - height = self.window.get_size()[1] - if not self.fullscreen_mode: - height -= self.menubar.size_request().height # TODO - if self.toolbar_show: - height -= self.toolbar.size_request().height - if self.statusbar_show: - height -= self.statusbar.size_request().height - return height + return self.layout.get_allocation().height def save_image(self, action, parameter, data): if self.action_group.lookup_action("save-image").get_enabled():