fix d'un probeleme de scrolling de la fenetre de chat.
This commit is contained in:
parent
70848d64e4
commit
a6bc1ee1a9
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
tool
|
||||||
extends MarginContainer
|
extends MarginContainer
|
||||||
|
|
||||||
export(bool) var is_movable = true
|
export(bool) var is_movable = true
|
||||||
|
|
|
@ -2,10 +2,13 @@ extends VBoxContainer
|
||||||
|
|
||||||
|
|
||||||
var line_edit_path = "../../../../footer_box/footer/footer_line_edit"
|
var line_edit_path = "../../../../footer_box/footer/footer_line_edit"
|
||||||
|
var new_line_added = false
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
var content_scroll = get_node( "../.." )
|
if new_line_added:
|
||||||
content_scroll.scroll_vertical = 2*self.rect_size.y
|
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 ):
|
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
|
new_line.selection_enabled = true
|
||||||
self.add_child( new_line )
|
self.add_child( new_line )
|
||||||
line_edit.text = ""
|
line_edit.text = ""
|
||||||
|
new_line_added = true
|
||||||
|
|
Loading…
Reference in a new issue