mirror of
https://github.com/kepler155c/opus
synced 2025-12-16 13:18:06 +00:00
refactor + cleanup
This commit is contained in:
@@ -3085,6 +3085,9 @@ function UI.Dialog:setParent()
|
||||
if not self.width then
|
||||
self.width = self.parent.width - 11
|
||||
end
|
||||
if self.width > self.parent.width then
|
||||
self.width = self.parent.width
|
||||
end
|
||||
self.x = math.floor((self.parent.width - self.width) / 2) + 1
|
||||
self.y = math.floor((self.parent.height - self.height) / 2) + 1
|
||||
UI.Page.setParent(self)
|
||||
|
||||
Reference in New Issue
Block a user