image/rendering: Do not config adj in snapshot
This caused warnings and scrollbars to disappear under certain conditions.
This commit is contained in:
parent
d69d0d5e47
commit
9c8d3dc63f
4 changed files with 8 additions and 4 deletions
7
NEWS
7
NEWS
|
|
@ -1,3 +1,8 @@
|
|||
46.alpha
|
||||
========
|
||||
|
||||
- Fix scrollbars disappearing under certain conditions
|
||||
|
||||
45.2
|
||||
====
|
||||
|
||||
|
|
@ -122,4 +127,4 @@ Bugfix release after initial feedback:
|
|||
44.0
|
||||
=======
|
||||
|
||||
Initial release
|
||||
Initial release
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ impl LpImage {
|
|||
self.notify_image_size_available();
|
||||
self.configure_best_fit();
|
||||
self.request_tiles();
|
||||
self.configure_adjustments();
|
||||
}
|
||||
DecoderUpdate::Redraw => {
|
||||
self.set_loaded(true);
|
||||
|
|
|
|||
|
|
@ -63,9 +63,6 @@ impl WidgetImpl for imp::LpImage {
|
|||
let display_width = obj.image_displayed_width();
|
||||
let display_height = obj.image_displayed_height();
|
||||
|
||||
// make sure the scrollbars are correct
|
||||
obj.configure_adjustments();
|
||||
|
||||
let applicable_zoom = obj.applicable_zoom();
|
||||
|
||||
let scaling_filter = if obj.metadata().format().map_or(false, |x| x.is_svg()) {
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ impl LpImage {
|
|||
self.imp().zoom.set(best_fit_level);
|
||||
self.set_zoom_target(best_fit_level);
|
||||
self.zoom_animation().pause();
|
||||
self.configure_adjustments();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue