Fix overlay windows not inheriting the per-window padding and margin settings of their parents

Fixes #6063
This commit is contained in:
Kovid Goyal
2023-03-01 21:45:17 +05:30
parent 66804dafe8
commit fccd776732
3 changed files with 12 additions and 3 deletions

View File

@@ -508,6 +508,9 @@ class EdgeWidths:
def serialize(self) -> Dict[str, Optional[float]]:
return {'left': self.left, 'right': self.right, 'top': self.top, 'bottom': self.bottom}
def copy(self) -> 'EdgeWidths':
return EdgeWidths(self.serialize())
class GlobalWatchers: