Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GroupBoxLayout: ensure notification layout is valid
A group box can have a notification which takes up vertical space. While the height of the notification was already subtracted from the available size, the layout of the notification widget was never actually (re-)validated. Because of this, the notification's HtmlComponent always returned the same cached height, even when the group box was resized. This resulted in a wrong height for the group box body. Example: when a form with a notification with a long text is made smaller, the notification becomes taller (because the browser automatically wraps the text), but the height of the group box body does not change. Consequently, the widgets inside the box "fall out" of the bottom. In addition, the notification layout needs to consider the width of the field status when computing the preferred height. An adjusted widthHint must be provided for this. The member '_statusWidth' was renamed to 'fieldStatusWidth' (same as in other layouts) so we can use the name '_statusWidth' for a new method to compute the actual status width. 367904
- Loading branch information
1 parent
c3cf9fb
commit ed1058e
Showing
3 changed files
with
109 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters