mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
refactor(segment): fixed border width with more than 3 buttons
Added another toolbar with 3 segments for testing and in order to fix the width on iOS, references #356
This commit is contained in:
@ -10,3 +10,7 @@ it('standard should be selected', function() {
|
||||
it('model c should be selected', function() {
|
||||
element(by.css('.e2eSegmentModelC')).click();
|
||||
});
|
||||
|
||||
it('top grossing should be selected', function() {
|
||||
element(by.css('.e2eSegmentTopGrossing')).click();
|
||||
});
|
||||
|
@ -15,6 +15,7 @@ class MyApp {
|
||||
});
|
||||
|
||||
this.modelStyle = 'B';
|
||||
this.appType = 'free';
|
||||
}
|
||||
|
||||
doSubmit(event) {
|
||||
|
@ -44,6 +44,8 @@
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<h4>Model style: NgModel</h4>
|
||||
|
||||
<ion-segment [(ng-model)]="modelStyle" dark>
|
||||
@ -63,3 +65,19 @@
|
||||
|
||||
<p>Model Style: <b>Model {{ modelStyle }}</b></p>
|
||||
</ion-content>
|
||||
|
||||
<ion-toolbar position="bottom">
|
||||
<ion-title>
|
||||
<ion-segment [(ng-model)]="appType" primary>
|
||||
<ion-segment-button value="paid">
|
||||
Paid
|
||||
</ion-segment-button>
|
||||
<ion-segment-button value="free">
|
||||
Free
|
||||
</ion-segment-button>
|
||||
<ion-segment-button value="top" class="e2eSegmentTopGrossing">
|
||||
Top Grossing
|
||||
</ion-segment-button>
|
||||
</ion-segment>
|
||||
</ion-title>
|
||||
</ion-toolbar>
|
||||
|
Reference in New Issue
Block a user