mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(scroll): merge into ion-content
This commit is contained in:
@@ -44,6 +44,7 @@ A list of the breaking changes introduced to each component in Ionic Angular v4.
|
||||
- [Radio](#radio)
|
||||
- [Range](#range)
|
||||
- [Refresher](#refresher)
|
||||
- [Scroll](#scroll)
|
||||
- [Segment](#segment)
|
||||
- [Select](#select)
|
||||
- [Spinner](#spinner)
|
||||
@@ -1113,6 +1114,23 @@ The `enabled` property (with a default value of `true`) has been renamed to `dis
|
||||
</ion-refresher>
|
||||
```
|
||||
|
||||
## Scroll
|
||||
|
||||
`ion-scroll` has been removed, fortunatelly `ion-content` can work as a drop-in replacement:
|
||||
|
||||
```diff
|
||||
- <ion-scroll scrollX="true">
|
||||
+ <ion-content scrollX="true">
|
||||
```
|
||||
|
||||
Another very good option is to style a `div` to become scrollable using CSS:
|
||||
|
||||
```css
|
||||
div.scrollable {
|
||||
overflow: scroll
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Segment
|
||||
|
||||
|
||||
Reference in New Issue
Block a user