Hello,
I’m trying to get scrollable console with nifty. I’m using following xml
[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”>
</control>
</panel>
</control>
[/xml]
I have issues with that:
- 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
- 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 ?