This problem was caused by attempting to modify public width/height properties when fit-to-image is set to true/false. This would require monitoring the state of fit-to-image, and maintaining the previous width/height values in public or private properties (& restoring at the correct moments).
That approach became way too involved, so instead, when user clicks "fit", create private width/height values inside renderer (instead of properties) used only for fit. This way, we never modify the public width/height and don't have to maintain any delicate state. When user enables fit, the renderer generates the width/height values as needed. When user disables fit, the width/height values are ignored & the public width/height values are used.
Issue #8097 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
1 issue link |
relates to #8066
Issue #8066Fit to Image - toggle issues |
This problem was caused by attempting to modify public width/height properties when fit-to-image is set to true/false. This would require monitoring the state of fit-to-image, and maintaining the previous width/height values in public or private properties (& restoring at the correct moments).
That approach became way too involved, so instead, when user clicks "fit", create private width/height values inside renderer (instead of properties) used only for fit. This way, we never modify the public width/height and don't have to maintain any delicate state. When user enables fit, the renderer generates the width/height values as needed. When user disables fit, the width/height values are ignored & the public width/height values are used.