Sencha Touch add view inside viewport, position it absolute, on top of all other views of the app

StackOverflow https://stackoverflow.com/questions/23648965

  •  22-07-2023
  •  | 
  •  

문제

In Sencha Touch, I have created a view which contains some legal text.

How can I add that view inside the ViewPort, make it position absolute and make it sit on top of all other views from the Viewport?

The view is basically a legal disclaimer, with a transparent background, which needs to always be visible in the viewport, on top of all other views.

도움이 되었습니까?

해결책

If I understand correctly your requirements, you can do that by using a simple Ext.Container with centered: true.

See an example here: https://fiddle.sencha.com/#fiddle/5s9

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top