H Hirogens Active Member Licensed User Longtime User Jul 18, 2018 #1 Hello, I was thinking that I had fixed my problem but I was wrong I would like to create a scrollview with a good size with all smartphones. Actually my problem is when I try to finish my scroll view with a picture but with some smartphones it's cut. I use that Code: scrollview_sante.Panel.Height = panel_sante.Height How can I fix that ? Thanks
Hello, I was thinking that I had fixed my problem but I was wrong I would like to create a scrollview with a good size with all smartphones. Actually my problem is when I try to finish my scroll view with a picture but with some smartphones it's cut. I use that Code: scrollview_sante.Panel.Height = panel_sante.Height How can I fix that ? Thanks
R ronell Well-Known Member Licensed User Longtime User Jul 18, 2018 #2 can you upload a small project that shows the issue? Upvote 0
H Hirogens Active Member Licensed User Longtime User Jul 19, 2018 #3 ronell said: can you upload a small project that shows the issue? Click to expand... How can I upload a zip file, cause it say too large but my zip is only 747ko :/ Upvote 0
ronell said: can you upload a small project that shows the issue? Click to expand... How can I upload a zip file, cause it say too large but my zip is only 747ko :/
H Hirogens Active Member Licensed User Longtime User Jul 19, 2018 #4 And what I do work perfectly on Samsung Galaxy Note but not on S8 Upvote 0
R ronell Well-Known Member Licensed User Longtime User Jul 19, 2018 #5 Hirogens said: How can I upload a zip file, cause it say too large but my zip is only 747ko :/ Click to expand... in b4a IDE.. File > Export as Zip Upvote 0
Hirogens said: How can I upload a zip file, cause it say too large but my zip is only 747ko :/ Click to expand... in b4a IDE.. File > Export as Zip
H Hirogens Active Member Licensed User Longtime User Jul 19, 2018 #6 ronell said: in b4a IDE.. File > Export as Zip Click to expand... You have what I do in this project, the problem appear when the ecran size is different Attachments sw_issue.zip sw_issue.zip 185.6 KB · Views: 512 Upvote 0
ronell said: in b4a IDE.. File > Export as Zip Click to expand... You have what I do in this project, the problem appear when the ecran size is different
KMatle Expert Licensed User Longtime User Jul 19, 2018 #8 Hirogens said: scrollview_sante.Panel.Height = panel_sante.Height Click to expand... You need to set the panel height to the last view's top+height plus maybe some space behind it. Upvote 0
Hirogens said: scrollview_sante.Panel.Height = panel_sante.Height Click to expand... You need to set the panel height to the last view's top+height plus maybe some space behind it.
stevel05 Expert Licensed User Longtime User Jul 19, 2018 #9 You should check for errors in the top of the IDE Logs pane, you have initialized panel_sante in code which is added with the designer, this is wrong and will cause problems. See if that cures this problem. Last edited: Jul 19, 2018 Upvote 0
You should check for errors in the top of the IDE Logs pane, you have initialized panel_sante in code which is added with the designer, this is wrong and will cause problems. See if that cures this problem.
H Hirogens Active Member Licensed User Longtime User Jul 19, 2018 #10 KMatle said: You need to set the panel height to the last view's top+height plus maybe some space behind it. Click to expand... Code: scrollview_sante.panel.height = last_view.top + last_view.Height I load my panel with pictures on my scrollview so last_view is the background where my scroll view is ? Upvote 0
KMatle said: You need to set the panel height to the last view's top+height plus maybe some space behind it. Click to expand... Code: scrollview_sante.panel.height = last_view.top + last_view.Height I load my panel with pictures on my scrollview so last_view is the background where my scroll view is ?
klaus Expert Licensed User Longtime User Jul 19, 2018 #11 You should remove: panel_sante.Initialize("sante") Then, in the Designer, you should set the vertical anchor of panel_sante and img_body to Top and not to both ! This line scrollview_sante.Panel.Height = panel_sante.Height is OK! Attached a modified project. Attachments sw_issue_new.zip sw_issue_new.zip 185.6 KB · Views: 491 Upvote 0
You should remove: panel_sante.Initialize("sante") Then, in the Designer, you should set the vertical anchor of panel_sante and img_body to Top and not to both ! This line scrollview_sante.Panel.Height = panel_sante.Height is OK! Attached a modified project.
H Hirogens Active Member Licensed User Longtime User Jul 19, 2018 #12 Perfect thanks Klaus, I was thinking anchor both was the solution everywhere but I was wrong Upvote 0