@@ -21,7 +21,7 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
2121 construct : function ( ) {
2222 this . base ( arguments ) ;
2323
24- const layout = new qx . ui . layout . Grow ( ) ;
24+ const layout = new qx . ui . layout . VBox ( 10 ) ;
2525 this . _setLayout ( layout ) ;
2626
2727 this . __poplulateLayout ( ) ;
@@ -46,8 +46,10 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
4646
4747 const anatomicalModelsData = this . getAnatomicalModelsData ( ) ;
4848 if ( anatomicalModelsData ) {
49- const card = this . __createCard ( anatomicalModelsData ) ;
50- this . _add ( card ) ;
49+ const modelInfo = this . __createModelInfo ( anatomicalModelsData ) ;
50+ this . _add ( modelInfo ) ;
51+ const pricingUnits = this . __createPricingUnits ( anatomicalModelsData ) ;
52+ this . _add ( pricingUnits ) ;
5153 } else {
5254 const selectModelLabel = new qx . ui . basic . Label ( ) . set ( {
5355 value : this . tr ( "Select a model for more details" ) ,
@@ -61,7 +63,7 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
6163 }
6264 } ,
6365
64- __createCard : function ( anatomicalModelsData ) {
66+ __createModelInfo : function ( anatomicalModelsData ) {
6567 const cardGrid = new qx . ui . layout . Grid ( 16 , 16 ) ;
6668 const cardLayout = new qx . ui . container . Composite ( cardGrid ) ;
6769
@@ -165,6 +167,10 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
165167 row : 2 ,
166168 } ) ;
167169
170+ return cardLayout ;
171+ } ,
172+
173+ __createPricingUnits : function ( anatomicalModelsData ) {
168174 const buttonsLayout = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 5 ) ) ;
169175 if ( anatomicalModelsData [ "leased" ] ) {
170176 const leaseModelButton = new qx . ui . form . Button ( ) . set ( {
@@ -192,13 +198,8 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
192198 buttonsLayout . add ( leaseModelButton , {
193199 flex : 1
194200 } ) ;
195- cardLayout . add ( buttonsLayout , {
196- column : 0 ,
197- row : 3 ,
198- colSpan : 2 ,
199- } ) ;
200201
201- return cardLayout ;
202+ return buttonsLayout ;
202203 } ,
203204 }
204205} ) ;
0 commit comments