iOS Question Button size changes after Complete in HttpJob

Status
Not open for further replies.

db0070

Active Member
Licensed User
Longtime User
I have this strange problem that my button's width on a CustomListView, is reduced in size after completing a HttpJob. I have single stepped it, and all seems fine, until the HttpJob is complete

I am attaching my cut down project - please can someone see what I am doing wrong?
 

Attachments

  • project.zip
    288.7 KB · Views: 99

Erel

B4X founder
Staff member
Licensed User
Longtime User
Why aren't you using iHttpUtils2 library?

You leaved a gap between the button and the sides. I've removed the gap and it looks fine:

SS-2019-01-04_08.55.17.png
 
Upvote 0

db0070

Active Member
Licensed User
Longtime User
Thanks, that works.
If I use iHttpUtils2 I get the error

Error description: Array expected.
Error occurred on line: 130
j.Download("http://someurl")

The code is below: -

B4X:
    Dim j As HttpJob
    j.Initialize("", Me) 'name is empty as it is no longer needed
    j.Download("http://someurl")
 
Upvote 0
Status
Not open for further replies.
Top