console: Leave scroll policy as AUTOMATIC

We shouldn't need to forcibly set it to NEVER. It doesn't seem to
be required in my testing

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2024-10-02 11:42:22 -04:00
parent 95006f42ba
commit 24324bb6f5

View File

@ -477,13 +477,6 @@ class vmmConsolePages(vmmGObjectUI):
is_resizeguest = self._viewer.console_get_resizeguest()
scale_factor = scroll.get_scale_factor()
if is_scale:
# Make sure we never show scrollbars when scaling
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER)
else:
scroll.set_policy(Gtk.PolicyType.AUTOMATIC,
Gtk.PolicyType.AUTOMATIC)
# If scaling is enabled, we set the viewer widget to the same
# size as the scrollwindow, and the viewer scales the VM to fit.
#