Fix keyboard size after being converted to a oriented Box

This commit is contained in:
alfrix 2022-06-30 14:04:06 -03:00 committed by Alfredo Monclus
parent 831db2403d
commit 3bb470ded4

View File

@ -1031,12 +1031,10 @@ class KlipperScreen(Gtk.Window):
logging.debug("PID %s" % p.pid)
keyboard = Gtk.Socket()
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.set_vexpand(False)
box.set_size_request(self.gtk.get_content_width(), self.gtk.get_keyboard_height())
box.get_style_context().add_class("keyboard_box")
box.add(keyboard)
box.pack_start(keyboard, True, True, 0)
self.base_panel.get_content().pack_end(box, True, True, 0)