2016-06-10 4 views
2

Q) 최신 Ionic 2 Beta 8에서 내 버튼이 갑자기 끊어지는 이유를 아는 사람이 있습니까?이오니아 2 : 베타 8 - 스크롤 가능한 콘텐츠 영역 하단의 버튼 줄이기

참고 : 나는 상단에있는 ion-toolbar을 주석 때, 버튼은

enter image description here

당신은 버튼을 iOS에서 부분적으로 볼 수 있음을 알 수 완전히 볼 수 있지만 모두에를 기계적 인조 인간.

은 여기 내 간단한 템플릿 HTML : 당신은 대체 할 경우

<ion-toolbar header-bg-buildings>  
    <ion-title>{{_I8nService.titles.addBuilding}}</ion-title> 
    <ion-buttons start> 
    <button (click)="cancel()"> 
     <span primary showWhen="ios">{{_I8nService.labels.cancel}}</span> 
     <ion-icon name="md-close" showWhen="android,windows"></ion-icon> 
    </button> 
    </ion-buttons> 
</ion-toolbar> 

<ion-toolbar danger *ngIf="showNoConnectionBar"> 
    <ion-title>{{_I8nService.titles.noConnection}}</ion-title> 
</ion-toolbar> 

<ion-content class="addBuilding">   
    ....   
    <ion-item-group> 
    <ion-item-divider light>{{_I8nService.labels.signed}}:</ion-item-divider> 
    <ion-row> 
     <ion-card class="signed-card"> 
     <ion-card-content> 
      <img src='{{currentUserSignature}}' /> 
     </ion-card-content> 
     </ion-card> 
    </ion-row> 
    </ion-item-group> 

    <div> 
     <button class="submit-button" full complete (click)="createBuilding()">{{_I8nService.labels.createBuilding}}</button> 
    </div> 
</ion-content> 
+0

당신이 [plunker]를 만들 수 (https://plnkr.co/) 바로 해당 페이지로? 거기에 무슨 일이 일어나는지 더 쉽게 볼 수 있습니다. – sebaferreras

+0

나는 내 github 문제에 여기 않았다. https://github.com/driftyco/ionic/issues/6839 – Dave

답변

0

어쩌면이 말이 없지만, 무슨 일이 모든 이온 후

<ion-toolbar position="bottom"> 
    <button full complete>Submit</button> 
</ion-toolbar> 

에 대한 div

<div> 
    <button full complete>Submit</button> 
</div> 

의사가 말하기를

툴바는

위나 콘텐츠

아래에 위치되고, 아마도 그 문제를 회피 버튼을 포함하는 콘텐츠를 강제 할 수있는 일반적인 바있다. 새로운 내용의 도구 모음 을 이온 함유량 안에 넣어 두는 것을 잊지 마십시오. plunker와 works에서 테스트되었지만 솔직히 그것이 당신의 프로젝트에서 효과가 있는지 알 수 없습니다.

코드는 다음과 같습니다

<ion-toolbar>  
    <ion-title>Page 1</ion-title> 
    <ion-buttons start> 
    <button> 
     <span primary showWhen="ios">cancel</span> 
     <ion-icon name="md-close" showWhen="android,windows"></ion-icon> 
    </button> 
    </ion-buttons> 
</ion-toolbar> 

<ion-content> 

    <ion-item-group> 
    <ion-item-divider light>Some group:</ion-item-divider>  
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 1:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row> 
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 2:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row>  
    </ion-item-group>  

    <ion-item-group> 
    <ion-item-divider light>Some group:</ion-item-divider>  
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 1:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row> 
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 2:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row>  
    </ion-item-group> 

    <ion-item-group> 
    <ion-item-divider light>Some group:</ion-item-divider>  
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 1:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row> 
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 2:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row>  
    </ion-item-group> 

    <ion-item-group> 
    <ion-item-divider light>Some group:</ion-item-divider>  
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 1:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row> 
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 2:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row>  
    </ion-item-group> 

    <ion-item-group> 
    <ion-item-divider light>Some group:</ion-item-divider>  
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 1:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row> 
    <ion-row> 
     <ion-item> 
     <ion-label stacked>field 2:</ion-label> 
     <ion-input></ion-input> 
     </ion-item> 
    </ion-row>  
    </ion-item-group> 


    <ion-toolbar position="bottom"> 
    <button full complete>Submit</button> 
    </ion-toolbar> 
</ion-content> 
+0

감사합니다. 실제로 정확히 시도했지만 그 결과는 정확히 같습니다! 나는 그 스타일 (스타일이나 코드)을 바꾸고있는 그 어떤 페이지도 (코드 나 CSS가 없다) 일어나는 일이 없다. – Dave

+1

흥미롭게도, 제출 버튼 아래에 빈 도구 모음을 추가했습니다 : ''... 그리고 문제가 해결되었습니다. 그것을 남겨주세요! – Dave

+1

위대한, 듣고 기뻐요!. 'height : calc (100 % -44px)' 과 같이 이온 내용의 높이를 조금만 올리면 나에게 무슨 일이 일어 났는지 물어볼 것입니다. 문제가 해결되면 이온 성의 버그 일 수 있으며 페이지의 다른 구성 요소 높이를 계산하는 방법 일 수 있습니다. – sebaferreras