Bug #14871
openWImage breaks layout in GridLayout
0%
Description
I'm using a Wimage inside a WGridlayout which is displayed within a container in a dialog.
If I don't explicitly set the image size with image->resize(100, 100); before adding the image to the grid layout, the dialog height is not calculated correctly on the initial display.
After reloading the page, or when the dialog is opened a second time, the height is rendered correctly.
The issue occurs most of the time on the first display, although occasionally the layout is already correct on the initial load.
It seems that the image dimensions are not always taken into account when the layout size is calculated for the first rendering.
See attached example.
Files
RM Updated by Romain Mardulyn 25 days ago
- Target version set to 4.16.0
This is likely because the image is not yet loaded when the layout is calculated. An image being loaded should trigger a layout adjustment.