Provide menu shadow size to the system

This commit is contained in:
Ilya Fedin 2022-08-08 04:10:04 +04:00 committed by John Preston
parent 4689c896e2
commit f5cdf4bdb8

View file

@ -302,6 +302,13 @@ void PopupMenu::handleCompositingUpdate() {
_padding = _useTransparency
? _st.shadow.extend
: style::margins(line, line, line, line);
if (windowHandle()) {
if (_useTransparency) {
Platform::SetWindowExtents(this, _padding);
} else {
Platform::UnsetWindowExtents(this);
}
}
_scroll->moveToLeft(_padding.left(), _padding.top());
handleMenuResize();
updateRoundingOverlay();