iOS:fix Slider and rotation

This commit is contained in:
pengfei.zhou
2020-04-07 10:58:44 +08:00
committed by osborn
parent 102f570fb4
commit f3c8d1be31
10 changed files with 17 additions and 45 deletions

View File

@@ -2015,7 +2015,7 @@ function slider(config) {
}
function slideItem(item, config) {
return (new SlideItem).also(function (it) {
it.layoutConfig = layoutConfig().fit();
it.layoutConfig = layoutConfig().most();
if (item instanceof View) {
it.addChild(item);
}

View File

@@ -1512,7 +1512,7 @@ function slider(config) {
}
function slideItem(item, config) {
return (new SlideItem).also((it) => {
it.layoutConfig = layoutConfig().fit();
it.layoutConfig = layoutConfig().most();
if (item instanceof View) {
it.addChild(item);
}

View File

@@ -2971,7 +2971,7 @@ function slider(config) {
}
function slideItem(item, config) {
return (new SlideItem).also((it) => {
it.layoutConfig = layoutConfig().fit();
it.layoutConfig = layoutConfig().most();
if (item instanceof View) {
it.addChild(item);
}