Commit c39f7390 authored by Suhas's avatar Suhas Committed by Thibault Saunier

mediafilespreviewer: Uniform pane size behaviour for images and videos

There is no need to choose a maximum between pane size
and new image size, the pane adjusts to the new size.

This fixes T7681

Differential Revision: https://phabricator.freedesktop.org/D1623
parent d6082960
......@@ -417,8 +417,6 @@ class PreviewWidget(Gtk.Grid, Loggable):
pixbuf = pixbuf.scale_simple(
int(w), int(h), GdkPixbuf.InterpType.BILINEAR)
w = max(w, self.settings.FCpreviewWidth)
h = max(h, self.settings.FCpreviewHeight)
self.preview_image.set_size_request(int(w), int(h))
self.preview_image.set_from_pixbuf(pixbuf)
self.preview_image.show()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment