Fix "find and replace" initializing with wrong size

Fix the code editor outside the allowed limits.
This commit is contained in:
Guilherme Felipe 2018-06-10 19:10:32 -03:00
parent acd9646ede
commit 5bae3693bf
5 changed files with 9 additions and 8 deletions

View file

@ -367,7 +367,7 @@ void TabContainer::_child_renamed_callback() {
void TabContainer::add_child_notify(Node *p_child) {
Control::add_child_notify(p_child);
Container::add_child_notify(p_child);
Control *c = Object::cast_to<Control>(p_child);
if (!c)
@ -475,7 +475,7 @@ Control *TabContainer::get_current_tab_control() const {
void TabContainer::remove_child_notify(Node *p_child) {
Control::remove_child_notify(p_child);
Container::remove_child_notify(p_child);
call_deferred("_update_current_tab");