2014-09-20 82 views
0

我有一堆ScrollViews,它有一个表面的列表。如何为Scrollview设置zIndex?

我需要正确堆叠滚动视图。但为了堆叠表面,我们可以通过zIndex属性来完成它?

但我不能为ScrollView设置zIndex属性?

这个作品

this.surface.setProperties({ 
     zIndex: index 
    }); 

这并不

this.scrollview.setProperties({ 
     zIndex: index 
    }); 

请告诉我一个同等功能的设置zIndex的了滚动。

谢谢。

+0

我使用containersurface设置Z-索引..它的工作.. this.scrollContainer = new ContainerSurface({undefined,undefined], properties {overflow:'hidden','z-index':5} }); this.scrollContainer.add(this.scrollview); – 2014-09-20 18:06:34

回答

0

我使用containersurface设置Z-索引..它的工作..

this.scrollContainer = new ContainerSurface({ 
    size:[undefined,undefined], 
    properties: { overflow: 'hidden', 'z-index': 5 } 
}); 
this.scrollContainer.add(this.scrollview); 

containerSurface我们可以设置属性..

相关问题