Provide menu shadow size to the system
This commit is contained in:
parent
4689c896e2
commit
f5cdf4bdb8
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue