iOS:fix Slider and rotation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -98,7 +98,7 @@ export function slider(config) {
|
||||
}
|
||||
export function slideItem(item, config) {
|
||||
return (new SlideItem).also((it) => {
|
||||
it.layoutConfig = layoutConfig().fit();
|
||||
it.layoutConfig = layoutConfig().most();
|
||||
if (item instanceof View) {
|
||||
it.addChild(item);
|
||||
}
|
||||
|
@@ -105,7 +105,7 @@ export function slider(config: ISlider) {
|
||||
|
||||
export function slideItem(item: View | View[], config?: ISlideItem) {
|
||||
return (new SlideItem).also((it) => {
|
||||
it.layoutConfig = layoutConfig().fit()
|
||||
it.layoutConfig = layoutConfig().most()
|
||||
if (item instanceof View) {
|
||||
it.addChild(item)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user