Просмотр исходного кода

Merge pull request #352 from samiamwork/scroll_container_size

Use given size as initial text input scroll container size
Ivan Safrin 12 лет назад
Родитель
Сommit
da9422bcc2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Modules/Contents/UI/Source/PolyUITextInput.cpp

+ 1 - 1
Modules/Contents/UI/Source/PolyUITextInput.cpp

@@ -174,7 +174,7 @@ UITextInput::UITextInput(bool multiLine, Number width, Number height) : UIElemen
 	
 	scrollContainer = NULL;
 	if(multiLine) {
-		scrollContainer = new UIScrollContainer(linesContainer, false, true, 200, 200);
+		scrollContainer = new UIScrollContainer(linesContainer, false, true, width, height);
 		scrollContainer->addEventListener(this, Event::CHANGE_EVENT);
 		addChild(scrollContainer);
 	} else {