Region's height changes on Save Position

First post, so let me start by thanking the staff for a wonderful product.
I have several 1920x1080 layouts (CMS 1.7.7). All have a top region of 1920x128 to accommodate a 1920x128 flash header. The problem is that, whenever I re-position another region and press Save Position, the height of the top region is unexpectedly changed to 127. That doesn’t sound like much, but it’s enough the get the flash scaled so it doesn’t neatly fit the top section of the layout. Changing the size of the designer seems to help, so I guessed it had something to do with the designer scale factor.

I changed the SavePositions() procedure in theme\default\js\xibo-layout-designer.js to calculate width and height in a slightly different way:

width: Math.round( ($(this).width() / designer_scale) + 0.5, 0),
height: Math.round( ($(this).height() / designer_scale) + 0.5, 0),

So far, this seems to work reliably, but I was wondering if there is a better or more precise way to do it.