# Scaling FLVPlayback

**URL:** <https://forum.kirupa.com/t/scaling-flvplayback/254113>\
**Category:** Uncategorized\
**Created:** [March 8, 2008, 3:49am UTC](https://forum.kirupa.com/t/scaling-flvplayback/254113 "2008-03-08T03:49:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![substance](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@substance](https://forum.kirupa.com/u/substance)\
**Post date:** [March 8, 2008, 3:49am UTC](https://forum.kirupa.com/t/scaling-flvplayback/254113/1 "2008-03-08T03:49:18Z")

</div>

For some reason when I add a negative number to the .width or .height property I get wack results. Here’s some of my trace statements:

> Old resoloution was 320x240, added -2 and the new resoloution is 315.35x236.5  
> Old resoloution was 315.35x236.5, added -2 and the new resoloution is 310.65000000000003x233

Here’s how im adding it.

```php
player.width = player.width + xDifference;

```

BTW adding a positive number seems to work fine.
