fix d'un probeleme de scrolling de la fenetre de chat.

This commit is contained in:
osquallo 2018-08-18 12:25:49 +02:00
parent 70848d64e4
commit a6bc1ee1a9
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,4 @@
tool
extends MarginContainer
export(bool) var is_movable = true

View file

@ -2,10 +2,13 @@ extends VBoxContainer
var line_edit_path = "../../../../footer_box/footer/footer_line_edit"
var new_line_added = false
func _process(delta):
var content_scroll = get_node( "../.." )
content_scroll.scroll_vertical = 2*self.rect_size.y
if new_line_added:
var content_scroll = get_node( "../.." )
content_scroll.scroll_vertical = 2*self.rect_size.y
new_line_added = false
func _on_footer_line_edit_gui_input( event ):
@ -21,3 +24,4 @@ func _on_footer_line_edit_gui_input( event ):
new_line.selection_enabled = true
self.add_child( new_line )
line_edit.text = ""
new_line_added = true