aaronk Well-Known Member Licensed User Longtime User May 22, 2016 #1 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 ?
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 ?
Erel B4X founder Staff member Licensed User Longtime User May 23, 2016 #2 It should work. Note that you can only safely use percentage in Page_Resize event. So this might be the problem. Upvote 0
It should work. Note that you can only safely use percentage in Page_Resize event. So this might be the problem.
aaronk Well-Known Member Licensed User Longtime User May 23, 2016 #3 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
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.