mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-27 12:03:52 +00:00
Handle case where bitmap does not have an x/y
This commit is contained in:
parent
02cbf94fe8
commit
f5565e74c2
1 changed files with 2 additions and 2 deletions
|
|
@ -89,8 +89,8 @@ export default class Bitmap {
|
|||
}
|
||||
|
||||
getBackgrondPositionCSSAttribute(): string {
|
||||
const x = Utils.px(-this._x);
|
||||
const y = Utils.px(-this._y);
|
||||
const x = Utils.px(-(this._x ?? 0));
|
||||
const y = Utils.px(-(this._y ?? 0));
|
||||
return `${x} ${y}`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue