@@ -60,9 +60,15 @@ qx.Class.define("osparc.support.Conversation", {
6060 _createChildControlImpl : function ( id ) {
6161 let control ;
6262 switch ( id ) {
63+ case "spacer-top" :
64+ control = new qx . ui . core . Spacer ( ) ;
65+ this . _addAt ( control , 0 , {
66+ flex : 100 // high number to keep even a one message list at the bottom
67+ } ) ;
68+ break ;
6369 case "messages-container-scroll" :
6470 control = new qx . ui . container . Scroll ( ) ;
65- this . _addAt ( control , 0 , {
71+ this . _addAt ( control , 1 , {
6672 flex : 1
6773 } ) ;
6874 break ;
@@ -75,13 +81,13 @@ qx.Class.define("osparc.support.Conversation", {
7581 case "load-more-button" :
7682 control = new osparc . ui . form . FetchButton ( this . tr ( "Load more messages..." ) ) ;
7783 control . addListener ( "execute" , ( ) => this . __reloadMessages ( false ) ) ;
78- this . _addAt ( control , 1 ) ;
84+ this . _addAt ( control , 2 ) ;
7985 break ;
8086 case "support-suggestion" :
8187 control = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 5 ) ) . set ( {
8288 alignY : "middle"
8389 } ) ;
84- this . _addAt ( control , 2 ) ;
90+ this . _addAt ( control , 3 ) ;
8591 break ;
8692 case "add-message" :
8793 control = new osparc . conversation . AddMessage ( ) . set ( {
@@ -93,14 +99,14 @@ qx.Class.define("osparc.support.Conversation", {
9399 // make it more compact
94100 control . getChildControl ( "comment-field" ) . getChildControl ( "tabs" ) . getChildControl ( "bar" ) . exclude ( ) ;
95101 control . getChildControl ( "comment-field" ) . getChildControl ( "subtitle" ) . exclude ( ) ;
96- this . _addAt ( control , 3 ) ;
102+ this . _addAt ( control , 4 ) ;
97103 break ;
98104 case "share-project-layout" :
99105 control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( ) ) . set ( {
100106 backgroundColor : "strong-main" ,
101107 decorator : "rounded" ,
102108 } ) ;
103- this . _addAt ( control , 4 ) ;
109+ this . _addAt ( control , 5 ) ;
104110 break ;
105111 case "share-project-checkbox" :
106112 control = new qx . ui . form . CheckBox ( ) . set ( {
0 commit comments