ionic-team / ionic-team/ionic-framework

bug: Ion-Segment has layout error in Ion-Content with ion-padding

Abierto
#29,774 5 comentarios 0 reacciones 0 asignados Ver en GitHub
package: core type: bug
Lenguaje dominante
TypeScript
Estrellas
52.7k
Forks
13.3k
Merge medio
1 d 15 h
PR fusionados (30 d)
51

Descripción

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v7.x

### Current Behavior

Ion-Segment has layout error in Ion-Content with ion-padding, it's nomarl on web and Simulator, but has layout error on device like below shows.

eg1: In Ion-Content with ion-padding, covered by Ion-Content on the left and right
![9786578627148CE900EF099DAE013CA3](https://github.com/user-attachments/assets/7ca18135-ba42-4203-969b-dd1a4dc8a2f7)
![2457A522FF5E08A3D6C0C14B94FAD054](https://github.com/user-attachments/assets/29e3c9a5-2389-4045-907b-a8c5489b7c37)

### Expected Behavior

Ion-Segment has right layout on device like this:
![localhost_8100_tutorial(Pixel 7)](https://github.com/user-attachments/assets/eb8ae73e-e10a-4189-ba4d-4a1408dc08b1)

### Steps to Reproduce

```


signup


默认


地形


影像


3D




signup



地图显示




默认


地形


影像


3D


地图显示

```

### Code Reproduction URL

https://github.com/dythbj/segment/blob/main/src/app/tab1/tab1.page.html

### Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.2.0
@angular-devkit/build-angular : 17.3.8
@angular-devkit/schematics : 17.3.8
@angular/cli : 17.3.8
@ionic/angular-toolkit : 11.0.1

Capacitor:

Capacitor CLI : 6.0.0
@capacitor/android : 6.0.0
@capacitor/core : 6.0.0
@capacitor/ios : 6.0.0

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v20.14.0 (/usr/local/bin/node)
npm : 10.7.0
OS : macOS Sonoma 14.5

### Additional Information

It's nomarl on web and Simulator, but has error on device, so i cann't give Reproduction Url.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.