mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
fix(window-size): Don't set size to decimal numbers
This commit is contained in:
parent
45b654ae74
commit
355751973e
1 changed files with 2 additions and 2 deletions
|
@ -593,12 +593,12 @@ class Atom extends Model
|
|||
|
||||
MAX_WIDTH = 1440
|
||||
if width > MAX_WIDTH
|
||||
x = (width - MAX_WIDTH) / 2
|
||||
x = Math.floor((width - MAX_WIDTH) / 2)
|
||||
width = MAX_WIDTH
|
||||
|
||||
MAX_HEIGHT = 900
|
||||
if height > MAX_HEIGHT
|
||||
y = (height - MAX_HEIGHT) / 2
|
||||
y = Math.floor((height - MAX_HEIGHT) / 2)
|
||||
height = MAX_HEIGHT
|
||||
|
||||
{x, y, width, height}
|
||||
|
|
Loading…
Reference in a new issue