iOS Question iSideMenu width

aaronk

Well-Known Member
Licensed User
Hi,

I am using the iSideMenu and want to know how to set/change the width of the (left) side menu when it opens.

I have seen LeftMenuMaxWidth however I have set it's value to be 20%x but I didn't see it adjust the size.

B4X:
smc.LeftMenuMaxWidth = 20%x

Am I doing this wrong ?
 

aaronk

Well-Known Member
Licensed User
I just added the following code to Page1_Resize and now it seems to work:

B4X:
Private Sub Page1_Resize(Width As Int, Height As Int)
smc.LeftMenuMaxWidth = 280dip
End Sub

Before I had no code in this sub. Seems that you can use percentage or dip value.
 
Upvote 0

Similar Threads

Top