Blueforcer Well-Known Member Licensed User Longtime User Nov 27, 2021 #1 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: Nov 27, 2021
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/]
Erel B4X founder Staff member Licensed User Longtime User Nov 28, 2021 #2 Please upload a small project that demonstrates it. Upvote 0
Blueforcer Well-Known Member Licensed User Longtime User Nov 29, 2021 #3 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
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
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2021 #4 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
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.