Scale9Sprite issue with spriteframes but not local files

Hey,

I’m experiencing problems with the Scale9Sprite when using spriteframes, I wonder if it’s some known issue and if there’s some work around? This happened both in 3.7.1 and 3.8.1 (upgraded in hope it would have fixed it).

So for example I experience graphical glitches as the following:

But it only happens for spriteframes:

// Does not work
background = ui::Scale9Sprite::createWithSpriteFrameName("box.png");

// But the following works (after adding the box.png as a resource file)
background = ui::Scale9Sprite::create("box.png");

Here’s how it looks when I load box.png as a file and not a spriteframe:

So for now my work around will be to use files instead of spriteframes, but there’s ofcourse a performance hit that will happen. It just seems like such a common thing to do, so I wonder if I do anything wrong? I’ve just started to migrate from Cocos2D-ObjC to X so maybe there something that works different?

Thanks!