2014-09-20 115 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我們可以設置屬性..

相關問題