question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[4.0.0-beta.17] ion-segment-button edges out when button number > 4

See original GitHub issue

Bug Report

Ionic version:

[x] 4.x

Current behavior:

ion-segment-buttons edges out on both side of tool bar when you have more than 4 ion-segment-buttons. this dose not happen on 4.0.0-beta15 Expected behavior:

all the ion-segment-buttons should be displayed in the toolbar Steps to reproduce:

initiate an Ionic project with the starter

ionic start myApp tabs --type=angular

copy paste the following code snippts under ion-header sector of the home page Related code:

<ion-toolbar>
    <ion-segment [(ngModel)]="order" color="light">
      <ion-segment-button value="receive" >
        <ion-label>Receive</ion-label>
      </ion-segment-button>
      <ion-segment-button value="publish" >
        <ion-label>Publish</ion-label>
      </ion-segment-button>
      <ion-segment-button value="topic" >
        <ion-label>Topic</ion-label>
      </ion-segment-button>
      <ion-segment-button value="query" >
        <ion-label>Query</ion-label>
      </ion-segment-button>
      <ion-segment-button value="read" >
        <ion-label>Read</ion-label>
      </ion-segment-button>
      <ion-segment-button value="trash" >
        <ion-label>Trash</ion-label>
      </ion-segment-button>
    </ion-segment>
</ion-toolbar>

Other information:

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.3.1 (/home/wjz/.nvm/versions/node/v10.7.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.17
   @angular-devkit/build-angular : 0.10.7
   @angular-devkit/schematics    : 7.0.7
   @angular/cli                  : 7.0.7
   @ionic/angular-toolkit        : 1.2.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0
   Cordova Plugins       : cordova-plugin-ionic-webview 2.0.2, (and 13 other plugins)

System:

   Android SDK Tools : 26.1.1 (/home/wjz/Android/Sdk)
   NodeJS            : v10.7.0 (/home/wjz/.nvm/versions/node/v10.7.0/bin/node)
   npm               : 6.2.0
   OS                : Linux 4.15

Environment:

   HTTP_PROXY  : http://127.0.0.1:37245/
   http_proxy  : http://127.0.0.1:37245/
   HTTPS_PROXY : http://127.0.0.1:37245/
   https_proxy : http://127.0.0.1:37245/

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jing-zhoucommented, Dec 15, 2018

Thanks, the CSS works fine for me

0reactions
ionitron-bot[bot]commented, Jan 14, 2019

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ion-segment-button - Ionic Framework
ion-segment-buttons are groups of related buttons inside of a Segment. Learn to use segment button icons and check their values on Ionic Framework...
Read more >
@ionic/angular | Yarn - Package Manager
Ionic is an open source app development toolkit for building modern, fast, top-quality cross-platform native and Progressive Web Apps from a single codebase ......
Read more >
ion-segment-button indicator outline border - Stack Overflow
I am getting this but what I am trying to achieve is have a red border AROUND the checked button and still show...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found