Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1710633 - Use the actual titlebar height to determine subdialog s…
…ize. r=Mardak It isn't immediately obvious that the hardcoded 30 pixel value this patch replaces was meant to represent strictly the height of the dialog's title bar (including border), but I do believe that is how it was intended, based on these two things: 1) Using 0 instead of 30 when no titlebar is present at least appears to be the correct behavior, or if nothing else it's a reasonable enough behavior that it prevents anything looking broken. 2) 30 pixels is the exact height of the titlebar including border as it actually appeared on in-content preferences dialog boxes at the time the hardcoded value was originally introduced here in bug 1128237. So, based on that, it looks like what's needed here is a value that is zero when no titlebar exists, or if there is one, then its computed height including border. As it turns out, we were already computing exactly that value for another purpose, so this patch simply plugs that in here in place of the hardcoded constant. Differential Revision: https://phabricator.services.mozilla.com/D117374
- Loading branch information