Fix history panel collapse when expanding script results
This commit is contained in:
parent
1384e2c4fd
commit
4780c00b73
@ -1017,8 +1017,8 @@ class RequestTabWidget(Gtk.Box):
|
|||||||
|
|
||||||
if self.script_output_expanded:
|
if self.script_output_expanded:
|
||||||
# Expand: set max first to avoid assertion errors
|
# Expand: set max first to avoid assertion errors
|
||||||
self.script_output_scroll.set_max_content_height(300)
|
self.script_output_scroll.set_max_content_height(150)
|
||||||
self.script_output_scroll.set_min_content_height(300)
|
self.script_output_scroll.set_min_content_height(150)
|
||||||
self.script_expander_label.set_text("Collapse output")
|
self.script_expander_label.set_text("Collapse output")
|
||||||
else:
|
else:
|
||||||
# Collapse: set min first to avoid assertion errors
|
# Collapse: set min first to avoid assertion errors
|
||||||
@ -1103,8 +1103,8 @@ class RequestTabWidget(Gtk.Box):
|
|||||||
|
|
||||||
if self.preprocessing_output_expanded:
|
if self.preprocessing_output_expanded:
|
||||||
# Expand: set max first to avoid assertion errors
|
# Expand: set max first to avoid assertion errors
|
||||||
self.preprocessing_output_scroll.set_max_content_height(300)
|
self.preprocessing_output_scroll.set_max_content_height(150)
|
||||||
self.preprocessing_output_scroll.set_min_content_height(300)
|
self.preprocessing_output_scroll.set_min_content_height(150)
|
||||||
self.preprocessing_expander_label.set_text("Collapse output")
|
self.preprocessing_expander_label.set_text("Collapse output")
|
||||||
else:
|
else:
|
||||||
# Collapse: set min first to avoid assertion errors
|
# Collapse: set min first to avoid assertion errors
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user