@@ -35,8 +35,6 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
3535 alignY : "middle" ,
3636 } ) ;
3737
38- this . __spacers = [ ] ;
39-
4038 this . initCurrentWorkspaceId ( ) ;
4139 this . initCurrentFolderId ( ) ;
4240
@@ -98,8 +96,6 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
9896 } ,
9997
10098 members : {
101- __spacers : null ,
102-
10399 _createChildControlImpl : function ( id ) {
104100 let control ;
105101 switch ( id ) {
@@ -151,8 +147,8 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
151147 this . _addAt ( control , this . self ( ) . POS . EDIT_BUTTON ) ;
152148 break ;
153149 case "share-layout" :
154- this . __addSpacer ( ) ;
155150 control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 10 ) . set ( {
151+ maringLeft : 10 ,
156152 alignY : "middle"
157153 } ) ) ;
158154 this . _addAt ( control , this . self ( ) . POS . SHARE_LAYOUT ) ;
@@ -166,8 +162,8 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
166162 break ;
167163 }
168164 case "role-layout" :
169- this . __addSpacer ( ) ;
170165 control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 5 ) . set ( {
166+ maringLeft : 10 ,
171167 alignY : "middle"
172168 } ) ) ;
173169 this . _addAt ( control , this . self ( ) . POS . ROLE_LAYOUT ) ;
@@ -269,15 +265,6 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
269265 }
270266 } ,
271267
272- __addSpacer : function ( ) {
273- const spacer = new qx . ui . basic . Label ( "-" ) . set ( {
274- font : "text-16" ,
275- alignY : "middle" ,
276- } ) ;
277- this . __spacers . push ( spacer ) ;
278- this . _add ( spacer ) ;
279- } ,
280-
281268 __setIcon : function ( source ) {
282269 // reset icon first
283270 const icon = this . getChildControl ( "icon" ) ;
@@ -302,10 +289,6 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
302289 }
303290 } ,
304291
305- __showSpacers : function ( show ) {
306- this . __spacers . forEach ( spacer => spacer . setVisibility ( show ? "visible" : "excluded" ) ) ;
307- } ,
308-
309292 __getShareIcon : function ( ) {
310293 // reset previous
311294 const layout = this . getChildControl ( "share-layout" ) ;
@@ -330,11 +313,9 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
330313 shareText . setValue ( Object . keys ( accessRights ) . length + " members" ) ;
331314 shareIcon . show ( ) ;
332315 shareText . show ( ) ;
333- this . __showSpacers ( true ) ;
334316 } else {
335317 shareIcon . exclude ( ) ;
336318 shareText . exclude ( ) ;
337- this . __showSpacers ( false ) ;
338319 }
339320 } ,
340321
@@ -358,12 +339,10 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
358339 roleText . setValue ( osparc . data . Roles . WORKSPACE [ val ] . label ) ;
359340 roleText . show ( ) ;
360341 roleIcon . show ( ) ;
361- this . __showSpacers ( true ) ;
362342 } else {
363343 editButton . exclude ( ) ;
364344 roleText . exclude ( ) ;
365345 roleIcon . exclude ( ) ;
366- this . __showSpacers ( false ) ;
367346 }
368347 } ,
369348
0 commit comments