Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- Apache Lucene
- Java
- varags
- Android
- asp.net
- Redirect
- 안드로이드
- decompiler
- jsp
- 컬럼명
- C#
- 자바
- 자바스크립트
- html
- MANTIS
- TextBox
- scrollView
- Bootstrap
- Web Service
- Maven
- javascript
- Eclipse
- MSsql
- WebView
- STS
- MS-SQL
- 이클립스
- 웹 서비스
- 웹뷰
- SpringSource Tool Suite
Archives
- Today
- Total
bboks.net™
Ionic split pane 너비 문제 해결 본문
tab과 sidemenu를 조합하여 사용하기 위해 split pane을 사용하던 중 안의 컨텐츠가 반 밖에 나오지 않는 문제 발생
<ion-split-pane>
<ion-menu contentId="content">
<ion-header>
<ion-toolbar color="primary">
<ion-title>Menu</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<ion-menu-toggle auto-hide="false" *ngFor="let p of pages">
<ion-item [routerLink]="p.url" routerDirection="root" [class.active-item]="selectedPath.startsWith(p.url)">
<ion-label>{{p.title}}</ion-label>
</ion-item>
</ion-menu-toggle>
<ion-item tappable routerLink="/login" routerDirection="root">
<ion-icon name="log-out" slot="start"></ion-icon>
Logout
</ion-item>
</ion-list>
</ion-content>
</ion-menu>
<ion-router-outlet id="content" main style="width: 100%;"></ion-router-outlet>
</ion-split-pane>
구글링 중 split pane에도 contentId를 써줘야 한다는 해결방법을 찾음
<ion-split-pane contentId="content">
<ion-menu contentId="content">
<ion-header>
<ion-toolbar color="primary">
<ion-title>Menu</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<ion-menu-toggle auto-hide="false" *ngFor="let p of pages">
<ion-item [routerLink]="p.url" routerDirection="root" [class.active-item]="selectedPath.startsWith(p.url)">
<ion-label>{{p.title}}</ion-label>
</ion-item>
</ion-menu-toggle>
<ion-item tappable routerLink="/login" routerDirection="root">
<ion-icon name="log-out" slot="start"></ion-icon>
Logout
</ion-item>
</ion-list>
</ion-content>
</ion-menu>
<ion-router-outlet id="content" main style="width: 100%;"></ion-router-outlet>
</ion-split-pane>
적용을 해주니 해결
[참고]
How to Combine Ionic 4 Tabs and Side Menu Navigation