Just tried to upgrade from v1.1 to (v1.2 and v1.3) and now when I try and set the ScrollView2D.Panel <height and width>
Crashes
Code:
mGrid_Body_SV2D.Panel.Height = CurOffset + (mFixedHeight - mGridSpacing) + mGridSize
mGrid_Body_SV2D.Panel.Width = CurGridBodyLeft + mGridSize
Error occurred on line: 881 (cGrid)
java.lang.NullPointerException
at anywheresoftware.b4a.objects.ViewWrapper.setHeight(ViewWrapper.java:165)
at com.BOBs.GolfScore.cgrid._showgrid(cgrid.java:739)
at com.BOBs.GolfScore.aplayerscoring._drawscoringscreen(aplayerscoring.java:3967)
at com.BOBs.GolfScore.aplayerscoring._createscreen(aplayerscoring.java:3658)
at com.BOBs.GolfScore.aplayerscoring._precreate(aplayerscoring.java:1031)
at com.BOBs.GolfScore.aplayerscoring._activity_create(aplayerscoring.java:773)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
If I go back to v1.1 everything is fine.
Can I no longer set the Height and Width in the new versions?