@@ -26,7 +26,7 @@ qx.Class.define("osparc.dashboard.ContainerHeader", {
2626 construct : function ( ) {
2727 this . base ( arguments ) ;
2828
29- this . _setLayout ( new qx . ui . layout . HBox ( 20 ) . set ( {
29+ this . _setLayout ( new qx . ui . layout . HBox ( 5 ) . set ( {
3030 alignY : "middle"
3131 } ) ) ;
3232 } ,
@@ -52,22 +52,8 @@ qx.Class.define("osparc.dashboard.ContainerHeader", {
5252 } ,
5353
5454 members : {
55- _createChildControlImpl : function ( id ) {
56- let control ;
57- switch ( id ) {
58- case "breadcrumbs-layout" :
59- control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 5 ) . set ( {
60- alignY : "middle"
61- } ) ) ;
62- this . _addAt ( control , 0 , { flex : 1 } ) ;
63- break ;
64- }
65- return control || this . base ( arguments , id ) ;
66- } ,
67-
6855 __buildBreadcrumbs : function ( ) {
69- const breadcrumbsLayout = this . getChildControl ( "breadcrumbs-layout" ) ;
70- breadcrumbsLayout . removeAll ( ) ;
56+ this . _removeAll ( ) ;
7157
7258 if ( this . getCurrentFolderId ( ) ) {
7359 const currentFolder = osparc . store . Folders . getInstance ( ) . getFolder ( this . getCurrentFolderId ( ) ) ;
@@ -76,23 +62,22 @@ qx.Class.define("osparc.dashboard.ContainerHeader", {
7662
7763 const currentFolderButton = this . __createCurrentFolderButton ( ) ;
7864 if ( currentFolderButton ) {
79- breadcrumbsLayout . add ( currentFolderButton ) ;
65+ this . _add ( currentFolderButton ) ;
8066 }
8167 } ,
8268
8369 __createUpstreamButtons : function ( childFolder ) {
8470 if ( childFolder ) {
85- const breadcrumbsLayout = this . getChildControl ( "breadcrumbs-layout" ) ;
8671 const parentFolder = osparc . store . Folders . getInstance ( ) . getFolder ( childFolder . getParentFolderId ( ) ) ;
8772 if ( parentFolder ) {
88- breadcrumbsLayout . addAt ( this . __createArrow ( ) , 0 ) ;
73+ this . _addAt ( this . __createArrow ( ) , 0 ) ;
8974 const upstreamButton = this . __createFolderButton ( parentFolder ) ;
90- breadcrumbsLayout . addAt ( upstreamButton , 0 ) ;
75+ this . _addAt ( upstreamButton , 0 ) ;
9176 this . __createUpstreamButtons ( parentFolder ) ;
9277 } else {
93- breadcrumbsLayout . addAt ( this . __createArrow ( ) , 0 ) ;
78+ this . _addAt ( this . __createArrow ( ) , 0 ) ;
9479 const homeButton = this . __createFolderButton ( ) ;
95- breadcrumbsLayout . addAt ( homeButton , 0 ) ;
80+ this . _addAt ( homeButton , 0 ) ;
9681 }
9782 }
9883 } ,
0 commit comments