Sprite rectangle problem

I have problem with Sprite rectangle.
For instance I have Stage width=1024px and as a child Stage have scrolling component w=2000px. I set mask on it with exact Stage size:1024. Everything is OK. But when I resize browser down and up, openFL see width of the stage as 2000px and I can’t resize it properly.
Is it possible to have this simple mask feature to keep sprite rectangle width or height as a mask, or I should use TileContainer for this?