Fix for Resizing the main tab area upon collapsing left menu 48/109848/1
author“Kruthi <krutbhat@att.com>
Mon, 6 Jul 2020 10:34:23 +0000 (16:04 +0530)
committer“Kruthi <krutbhat@att.com>
Mon, 6 Jul 2020 10:34:34 +0000 (16:04 +0530)
Change-Id: I0745333090f7d19f5c7cee478aef4ef7fffe6733
Issue-ID: PORTAL-942
Signed-off-by: krutbhat@att.com
portal-FE-common/src/app/layout/components/tabbar/tabbar.component.html
portal-FE-common/src/app/layout/components/tabbar/tabbar.component.ts

index 31bb197..93dd345 100644 (file)
@@ -59,7 +59,7 @@
             <div style="display: flex; flex-direction:row;">
               <app-sidebar (collapsedEvent)="receiveCollapsed($event)"></app-sidebar>
               <app-userbar></app-userbar>
-              <div class="container" style="margin-left: 370px;">
+              <div class="container" [ngStyle]="setStyle()">
                 <router-outlet></router-outlet>
               </div>
             </div>
index 7a10e39..b0b882d 100644 (file)
@@ -92,4 +92,11 @@ export class TabbarComponent implements OnInit {
     if(this.tabs.length != 0 && $event.index != 0)
       this.tabs[$event.index - 1].active = true;
   }
+  
+  setStyle() {  
+    const style = {
+       'margin-left': this.collapedSideBar ? '80px' : '370px',
+    };
+    return style;
+  }
 }