The LinkButton component has an ability to wrap caption onto multiple rows (link). Thus, at the first recalculation of the heights for the GridLayout slots, it returns an invalid multiline component height.
In order to calculate the really required caption height, regardless of the white-space mode, we need to explicitly set it to nowrap. After calculation, it's reverted back.
Environment
Description of the bug or enhancement
Minimal reproducible example
Expected behavior
Updates
The
LinkButton
component has an ability to wrap caption onto multiple rows (link). Thus, at the first recalculation of the heights for theGridLayout
slots, it returns an invalid multiline component height. In order to calculate the really required caption height, regardless of thewhite-space
mode, we need to explicitly set it tonowrap
. After calculation, it's reverted back.QA
Check the above case.