1616************************************************************************ */
1717
1818qx . Class . define ( "osparc.vipMarket.VipMarket" , {
19- extend : qx . ui . core . Widget ,
19+ extend : qx . ui . splitpane . Pane ,
2020
2121 construct : function ( licensedItems ) {
22- this . base ( arguments ) ;
23-
24- this . _setLayout ( new qx . ui . layout . HBox ( 10 ) ) ;
22+ this . base ( arguments , "horizontal" ) ;
23+
24+ this . setOffset ( 5 ) ;
25+ this . getChildControl ( "splitter" ) . set ( {
26+ width : 1 ,
27+ backgroundColor : "text" ,
28+ opacity : 0.3 ,
29+ } ) ;
30+ this . getChildControl ( "slider" ) . set ( {
31+ width : 2 ,
32+ backgroundColor : "text" ,
33+ opacity : 1 ,
34+ } ) ;
2535
2636 this . __buildLayout ( ) ;
2737
@@ -60,16 +70,16 @@ qx.Class.define("osparc.vipMarket.VipMarket", {
6070 case "left-side" :
6171 control = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 10 ) ) . set ( {
6272 alignY : "middle" ,
73+ paddingRight : 5 ,
6374 } ) ;
64- this . _add ( control ) ;
75+ this . add ( control , 0 ) ; // flex: 0
6576 break ;
6677 case "right-side" :
6778 control = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 10 ) ) . set ( {
6879 alignY : "middle" ,
80+ paddingLeft : 5 ,
6981 } ) ;
70- this . _add ( control , {
71- flex : 1
72- } ) ;
82+ this . add ( control , 1 ) ; // flex: 1
7383 break ;
7484 case "toolbar-layout" :
7585 control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 10 ) ) . set ( {
@@ -88,10 +98,12 @@ qx.Class.define("osparc.vipMarket.VipMarket", {
8898 control = new osparc . filter . TextFilter ( "text" , "vipModels" ) . set ( {
8999 alignY : "middle" ,
90100 allowGrowY : false ,
91- minWidth : 160 ,
101+ allowGrowX : true ,
102+ marginRight : 5 ,
92103 } ) ;
93104 control . getChildControl ( "textfield" ) . set ( {
94105 backgroundColor : "transparent" ,
106+ allowGrowX : true ,
95107 } ) ;
96108 this . addListener ( "appear" , ( ) => control . getChildControl ( "textfield" ) . focus ( ) ) ;
97109 this . getChildControl ( "toolbar-layout" ) . add ( control , {
@@ -102,8 +114,7 @@ qx.Class.define("osparc.vipMarket.VipMarket", {
102114 control = new qx . ui . form . List ( ) . set ( {
103115 decorator : "no-border" ,
104116 spacing : 5 ,
105- minWidth : 250 ,
106- maxWidth : 250 ,
117+ width : 250 ,
107118 backgroundColor : "transparent" ,
108119 } ) ;
109120 this . getChildControl ( "left-side" ) . add ( control , {
0 commit comments