mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
perf(rendering): add css containment
This commit is contained in:

committed by
Adam Bradley

parent
624cb356df
commit
5ad7fd1908
@ -16,10 +16,16 @@ ion-picker-cmp {
|
||||
|
||||
width: $picker-width;
|
||||
height: $picker-width;
|
||||
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
.picker-toolbar {
|
||||
z-index: 1;
|
||||
|
||||
width: 100%;
|
||||
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
.picker-wrapper {
|
||||
@ -40,6 +46,8 @@ ion-picker-cmp {
|
||||
max-width: $picker-max-width;
|
||||
|
||||
transform: translate3d(0, 100%, 0);
|
||||
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
.picker-columns {
|
||||
@ -49,6 +57,8 @@ ion-picker-cmp {
|
||||
overflow: hidden;
|
||||
|
||||
justify-content: center;
|
||||
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
.picker-col {
|
||||
@ -61,6 +71,8 @@ ion-picker-cmp {
|
||||
height: 100%;
|
||||
|
||||
box-sizing: content-box;
|
||||
|
||||
contain: content;
|
||||
}
|
||||
|
||||
.picker-opts {
|
||||
|
Reference in New Issue
Block a user