Nifty console inside scrollpane


I’m trying to get scrollable console with nifty. I’m using following xml


<control id=“scrollbarPanel” name=“scrollPanel” align=“center” horizontal=“false” height=“300px” width=“95%” valign=“top” >

<panel childLayout=“center” align=“center” valign=“top” height=“1100px”>

<control id=“console” name=“nifty-console” lines=“100” align=“center” valign=“top”>





I have issues with that:

  1. When typing in console, input is not displayed as I’m typing. Output is correct and as I’m using basic echo for now, it is what I have typed previously. With same code, just removing scrollbar control, input is shown correctly
  2. I need to put height of childLayout versus number of lines in console by hand (in this example it is slightly off). Is there a way for console to reports it’s height to panel which would put it to scrollpane ?