Bug #14437
openWrong calculation of height when replacing container widget
0%
Description
In our application, we dynamically replace the main container widget that is displayed on user interaction.
If this container includes a grid layout, it seems that the grid layout's height is recalculated differently every time we update the container.
You can see this behaviour in the attached example if you hit several times the button.
With WT 4.10.4 this effect did not occur.
Files
AR Updated by Achim Reutelsterz 5 months ago
I forgot to mention that if I hit Refresh (F5) the page looks correct again.
AR Updated by Achim Reutelsterz 5 months ago
AR Updated by Achim Reutelsterz 2 months ago
Is there any news about that? This problem also occurs with WT 4.13.3.
I found out that it only happens with Flex Layout implementation. With Javascript Layout it seems to be fine.
AR Updated by Achim Reutelsterz about 2 months ago
After investigating the issue further I found that when a container is removed from its parent (e.g. via removeFromParent()), an empty
As a workaround, I keep the outer container and only replace its child widgets. With this approach, the layout remains stable and the issue does not occur.
Please see the attached revised example. With the left upper button the problem is reproducible.
AR Updated by Achim Reutelsterz about 2 months ago
With the right upper button the problem doesn't occur.
RM Updated by Romain Mardulyn 25 days ago
- Target version set to 4.14.2
RM Updated by Romain Mardulyn 21 days ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
RM Updated by Romain Mardulyn 21 days ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
ED Updated by emil de keyser 19 days ago
- Assignee set to emil de keyser
ED Updated by emil de keyser 19 days ago
- Status changed from Review to Resolved
- Assignee changed from emil de keyser to Romain Mardulyn
RM Updated by Romain Mardulyn 19 days ago
- Status changed from Resolved to Implemented @Emweb