Android Question BBCodeView URL img size

Blueforcer

Well-Known Member
Licensed User
Longtime User
I just found out that the width and height parameters just changes the position, not the size.
It works in the BBCodeDesigner, but not in my app
Is this a bug?


B4X:
[img url="https://via.placeholder.com/300/09f/fff.png" width=500 height=500/]
 
Last edited:

Blueforcer

Well-Known Member
Licensed User
Longtime User
Sure.
I made a litte demonstration by increase the width in a for each loop.
And the Picture moves to the right instead of getting wider
 

Attachments

  • BBCODETEST.zip
    10.1 KB · Views: 197
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is related to the image being cached.
You can clear the cache to make it resize:
B4X:
    For i=100 To Root.Width Step 100
        Width=i
        BBCodeView1.ParseData.ImageCache.Clear
        draw
        Sleep(2000)
    Next
End Sub
Note that it will cause the image to be redownloaded every call. Better to download it yourself.
 
Upvote 0
Top