ionic-team / ionic-team/ionic-framework

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

Đang mở
#29,774 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
package: core type: bug
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

### 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.