2.60b1 #PB_Mobile_Center doesn't work

Just starting out? Need help? Post your questions and find answers here.
munfraid
Posts: 135
Joined: Sat Mar 24, 2018 1:33 pm

2.60b1 #PB_Mobile_Center doesn't work

Post by munfraid »

The flags

Code: Select all

#PB_Mobile_Center
#PB_Mobile_Right
are not working here.
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: 2.60b1 #PB_Mobile_Center doesn't work

Post by Fred »

How do you use them, please always post a running code.
munfraid
Posts: 135
Joined: Sat Mar 24, 2018 1:33 pm

Re: 2.60b1 #PB_Mobile_Center doesn't work

Post by munfraid »

It's not working in all the sample codes you provided.
Here a small running example

Code: Select all

If ContainerMobile(#PB_Any, #PB_Mobile_Template, "", "page1")
  
  TextMobile(#PB_Any, "Centered Text?", #PB_Mobile_Center)
  CloseMobileContainer()
  
EndIf

NavigatorMobile(0, "page1") 
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: 2.60b1 #PB_Mobile_Center doesn't work

Post by Fred »

The centered flag only work in container like Row, ListItem, ToolBar which has the 3 place holder. A template container doesn't have such.

Code: Select all

If ContainerMobile(#PB_Any, #PB_Mobile_Page, "", "page1")
  
  ContainerMobile(#PB_Any, #PB_Mobile_Row)
    TextMobile(#PB_Any, "Centered Text?", #PB_Mobile_Center)
  CloseMobileContainer()
  
  CloseMobileContainer()
EndIf

NavigatorMobile(0, "page1") 
munfraid
Posts: 135
Joined: Sat Mar 24, 2018 1:33 pm

Re: 2.60b1 #PB_Mobile_Center doesn't work

Post by munfraid »

Ah, I see... Thanks Fred!
Post Reply